shortened path to home
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
export RESTIC_PASSWORD="8ung1e1!"
|
||||
export RESTIC_REPOSITORY="rest:http://192.168.1.51:8000/changemepls/home/akanealw"
|
||||
export RESTIC_REPOSITORY="rest:http://192.168.1.51:8000/changemepls/home"
|
||||
@@ -6,7 +6,7 @@ mv /root/scripts/restic/export*.sh /root/scripts/restic/older-scripts/ > /dev/nu
|
||||
mv /root/scripts/restic/restic*.sh /root/scripts/restic/older-scripts/ > /dev/null 2>&1
|
||||
wget -q http://192.168.1.50/scripts/restic/restic-rest-server/restic-rest-server-backup.sh -P /root/scripts/restic
|
||||
wget -q http://192.168.1.50/scripts/restic/restic-rest-server/export-etc.sh -P /root/scripts/restic
|
||||
wget -q http://192.168.1.50/scripts/restic/restic-rest-server/export-home-akanealw.sh -P /root/scripts/restic
|
||||
wget -q http://192.168.1.50/scripts/restic/restic-rest-server/export-home.sh -P /root/scripts/restic
|
||||
wget -q http://192.168.1.50/scripts/restic/restic-rest-server/export-opt.sh -P /root/scripts/restic
|
||||
wget -q http://192.168.1.50/scripts/restic/restic-rest-server/export-root.sh -P /root/scripts/restic
|
||||
wget -q http://192.168.1.50/scripts/restic/restic-rest-server/restic-rest-server-init.sh -P /root/scripts/restic
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
export RESTIC_PASSWORD="8ung1e1!"
|
||||
|
||||
# backup /home/akanealw
|
||||
export RESTIC_REPOSITORY="rest:http://192.168.1.51:8000/changemepls/home/akanealw"
|
||||
export RESTIC_REPOSITORY="rest:http://192.168.1.51:8000/changemepls/home"
|
||||
restic unlock
|
||||
restic backup /home/akanealw --no-cache -v
|
||||
restic backup /home --no-cache -v
|
||||
restic unlock
|
||||
restic forget --keep-last 25 --prune
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
export RESTIC_PASSWORD="8ung1e1!"
|
||||
|
||||
restic -r rest:http://192.168.1.51:8000/changemepls/home/akanealw init
|
||||
restic -r rest:http://192.168.1.51:8000/changemepls/home init
|
||||
restic -r rest:http://192.168.1.51:8000/changemepls/etc init
|
||||
restic -r rest:http://192.168.1.51:8000/changemepls/opt init
|
||||
restic -r rest:http://192.168.1.51:8000/changemepls/root init
|
||||
|
||||
Reference in New Issue
Block a user