A python cli for 'ssh + rsync + cp with hardlinks' backups featuring menu and incremental backups
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
defaults.xml
pysshbackup

README.md

pysshbackup

A python cli for 'ssh + rsync + cp with hardlinks' backups featuring menu and incremental backups

Pysshbackup v2.1 A python backup system

Installation ##########################################

  1. 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
  1. save file in /home//.pysshbackup/defaults.xml (or if you'll run as root, /root/.pysshbackup/defaults.xml)

  2. 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

Dependencies ########################################## python, paramiko, rsync, ssh, elementtree

**** This script works best with passwordless ssh by key