added rest-server option

This commit is contained in:
2024-05-25 13:29:57 -05:00
parent dde9c9bd70
commit 3c1a219be0
7 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
#!/bin/bash
export RESTIC_PASSWORD="8ung1e1!"
# backup /home/akanealw
export RESTIC_REPOSITORY="rest:http://192.168.1.51:8000/changemepls/home/akanealw"
restic unlock
restic backup /home/akanealw --no-cache -v
restic unlock
restic forget --keep-last 25 --prune
# backup /etc
export RESTIC_REPOSITORY="rest:http://192.168.1.51:8000/changemepls/etc"
restic unlock
restic backup /etc --no-cache -v
restic unlock
restic forget --keep-last 25 --prune
# backup /opt
export RESTIC_REPOSITORY="rest:http://192.168.1.51:8000/changemepls/opt"
restic unlock
restic backup /opt --no-cache -v
restic unlock
restic forget --keep-last 25 --prune
# backup /root
export RESTIC_REPOSITORY="rest:http://192.168.1.51:8000/changemepls/root"
restic unlock
restic backup /root --no-cache -v
restic unlock
restic forget --keep-last 25 --prune