Make backup, last step

master
Jeff Moe 6 years ago
parent a441c38d5f
commit fc28031816

@ -8,6 +8,7 @@ for i in `grep ^sf- .clusterssh/clusters | cut -f 1 -d " "` ; do clusterssh $i ;
sudo su -
mv /home/jebba/borg /root/
cd /root/borg
# Note, get real string with correct host/user/pass:
sed -i -e 's/user@host/1234@host.com/g' forksand-borg-*
sed -i -e 's/BORG_RELOCATED_REPO_ACCESS_IS_OK=no/BORG_RELOCATED_REPO_ACCESS_IS_OK=yes/g' forksand-borg-*
@ -20,9 +21,6 @@ ssh-keygen -t ed25519 -f /root/.ssh/id_ed25519-borg-`hostname`
# Initalize new repo, no passphrase:
./forksand-borg-init
# Make a new backup:
./forksand-borg-create
# Collect keys to backup:
./forksand-borg-tar-keys
mv /root/borg-`hostname`-keys.tar.bz2 /home/jebba/
@ -40,3 +38,6 @@ crontab -e
# m h dom mon dow command
0 * * * * /root/borg/forksand-borg-create
# Make a new backup:
./forksand-borg-create

Loading…
Cancel
Save