| 1 | #!/bin/bash |
| 2 | rsync -avhzr --delete --progress --rsh='ssh -p11' user@111.111.111.111:/ --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/swapfile","/boot/*"} /path/to/folder |
airikr / backupvps.sh
Last active 5 months ago
This script backups everything from the server besides of the excluded folders.
Revision a26148932f2601f5e7481acd639eadceea78b3dd