Skip to content

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

License

Notifications You must be signed in to change notification settings

eugenecormier/pysshbackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pysshbackup

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

Pysshbackup v3 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, 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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages