A python cli for 'ssh + rsync + cp with hardlinks' backups featuring menu and incremental backups
Pysshbackup v3 A python backup system
Installation ##########################################
- edit the defaults.xml file to your liking: you can change
- backupfolder
- ssh server
- sshuser (if doing full system, you'll need to use root to preserve permssions)
- ssh password
- and any files/folders you want backed up
-
save file in /home//.pysshbackup/defaults.xml (or if you'll run as root, /root/.pysshbackup/defaults.xml)
-
you can link/copy pysshbackup to /usr/local/sbin or run it directly (probably should be run as root (I always do)
You can run the program directly (without options) to get a simple menu system or run it with the -p/--partial-cli option to do an automatic backup named today's date (if you make your own backups they probably should be the same... by date: year-month-day)
Remember: you'll need to create an initial full backup before creating partials (f) Also: I find naming my backups by date (year-mo-da) tends to work well, this format is absolutely necessary when working with the -p (cli partial backup) flag.
Dependencies ########################################## python3, paramiko, rsync, ssh, elementtree
**** This script works best with passwordless ssh by key