added lines to backup old scripts
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p /root/scripts/restic > /dev/null 2>&1
|
||||
rm /root/scripts/restic/* > /dev/null 2>&1
|
||||
mkdir -p /root/scritps/restic/older-scripts > /dev/null 2>&1
|
||||
mv /root/scripts/restic/export*.sh older-scripts/ > /dev/null 2>&1
|
||||
mv /root/scripts/restic/restic*.sh 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
|
||||
|
||||
Reference in New Issue
Block a user