Update README.md
This commit is contained in:
parent
2d439bf042
commit
7f62b04d34
1 changed files with 3 additions and 3 deletions
|
@ -174,13 +174,13 @@ The `backup-restic.sh` script provides a similar interface for restic.
|
||||||
To specify your repository's password, you'll need to export the `$RESTIC_PASSWORD_FILE` or `$RESTIC_PASSWORD_COMMAND` environment variable.
|
To specify your repository's password, you'll need to export the `$RESTIC_PASSWORD_FILE` or `$RESTIC_PASSWORD_COMMAND` environment variable.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
restic init -r /path/to/restic-backups
|
restic init -r /path/to/restic-repo
|
||||||
touch restic-password.txt # make a new file for your restic password
|
touch restic-password.txt # make a new file for your restic password
|
||||||
chmod 600 restic-password.txt # make sure only you can read your password
|
chmod 600 restic-password.txt # make sure only you can read your password
|
||||||
echo "my_restic-password" > restic_password.txt
|
echo "my_restic-password" > restic-password.txt
|
||||||
export RESTIC_PASSWORD_FILE=$(pwd)/restic_password.txt
|
export RESTIC_PASSWORD_FILE=$(pwd)/restic_password.txt
|
||||||
|
|
||||||
/path/to/minecraft-backup/backup-restic.sh -c -s minecraft -i /path/to/minecraft-server/world -o /path/to/restic-backups
|
/path/to/minecraft-backup/backup-restic.sh -c -s minecraft -i /path/to/minecraft-server/world -o /path/to/restic-repo
|
||||||
```
|
```
|
||||||
|
|
||||||
See above for an example automating this using systemd timers.
|
See above for an example automating this using systemd timers.
|
||||||
|
|
Loading…
Add table
Reference in a new issue