7 lines
376 B
Bash
7 lines
376 B
Bash
#!/bin/bash
|
|
rsync -avz --delete -e "ssh -i /root/backup/backup" /root overleaf@backup.zfn.uni-bremen.de:/home/overleaf/backup_root/root
|
|
docker exec -it backup /bin/sh -c 'cd /data/ ; rsync -avz --delete -e "ssh -o StrictHostKeyChecking=accept-new -i /data/backup" /data/backup_docker overleaf@backup.zfn.uni-bremen.de:/home/overleaf/backup_docker/'
|
|
|
|
echo "Backup completed"
|
|
|
|
|