1
0
mirror of https://github.com/php/systems.git synced 2026-03-23 23:32:12 +01:00
Files
archived-systems/backup-thisbox
Jim Winstead 5755ad0c0d Avoid warning message from tar by not using absolute path
Right now we're getting this in `php-cron-box.log` on every run:

```
tar: Removing leading `/' from member names
```

This does change the format of the backups to not include `local/` in
the file path, but there's nothing automated that uses these backups.
2024-08-19 11:37:22 +01:00

8 lines
166 B
Bash
Executable File

#!/bin/sh
# $Id$
# Backup the "this-box" state; tokens, keys etc.
cd /local
mkdir -p backups
tar cf - this-box | bzip2 -9 > backups/thisbox-`hostname`-$date.tar.bz2