Skip to content

marianschmotzer/rsync-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

rsync-backup

Python file backup script with functionality:

  • Sending email notifications
  • Keeping only given number of backups
  • Mounting/unmounting disk if it is mountpoint
  • Some more on the way

Parameters

List of cmd line parameters -d, --directory List of directories to backup.Can be specified multiple times.
-t, --targetdir Backup target directory -m, --mountpoint Mount point must be mounted befor backup -k, --keepbackups Number of backups to keep -e, --email Email to send notifications to.
-f, --from Email sender address.No meaning without --email
-s, --smtpserver SMTP server to use
--dry-run Don't do back just check env, if problems found sends email and displays message"

Example of config file

--directory=/srv/mail
--directory=/srv/samba
--directory=/srv/postgresql
--targetdir=/mnt/backup/
--email=admin
--smtpserver=localhost:25
--mountpoint=/mnt/backup

Dependencies

Python modules :

  • tqdm

About

Python file backup script

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages