overleaf/backup/make_backup.sh

8 lines
376 B
Bash
Raw Permalink Normal View History

2024-07-16 16:39:39 +02:00
#!/bin/bash
rsync -avz --delete -e "ssh -i /root/backup/backup" /root overleaf@backup.zfn.uni-bremen.de:/home/overleaf/backup_root/root
2024-07-16 17:54:31 +02:00
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/'
2024-07-16 16:39:39 +02:00
2024-07-16 17:54:31 +02:00
echo "Backup completed"
2024-07-16 16:39:39 +02:00