|
|
@ -8,6 +8,7 @@ for i in `grep ^sf- .clusterssh/clusters | cut -f 1 -d " "` ; do clusterssh $i ;
|
|
|
|
sudo su -
|
|
|
|
sudo su -
|
|
|
|
mv /home/jebba/borg /root/
|
|
|
|
mv /home/jebba/borg /root/
|
|
|
|
cd /root/borg
|
|
|
|
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/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-*
|
|
|
|
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:
|
|
|
|
# Initalize new repo, no passphrase:
|
|
|
|
./forksand-borg-init
|
|
|
|
./forksand-borg-init
|
|
|
|
|
|
|
|
|
|
|
|
# Make a new backup:
|
|
|
|
|
|
|
|
./forksand-borg-create
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Collect keys to backup:
|
|
|
|
# Collect keys to backup:
|
|
|
|
./forksand-borg-tar-keys
|
|
|
|
./forksand-borg-tar-keys
|
|
|
|
mv /root/borg-`hostname`-keys.tar.bz2 /home/jebba/
|
|
|
|
mv /root/borg-`hostname`-keys.tar.bz2 /home/jebba/
|
|
|
@ -40,3 +38,6 @@ crontab -e
|
|
|
|
# m h dom mon dow command
|
|
|
|
# m h dom mon dow command
|
|
|
|
0 * * * * /root/borg/forksand-borg-create
|
|
|
|
0 * * * * /root/borg/forksand-borg-create
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Make a new backup:
|
|
|
|
|
|
|
|
./forksand-borg-create
|
|
|
|
|
|
|
|
|
|
|
|