Skip to content

darkmattercoder/rsnapshot-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rsnapshot-scripts

Collection of scripts to use with rsnapshot

rsnapshot-once.php

This is a php script that I included here to show where rsnapshot-once.py originated. It was originally written by Philipp Heckel, who announced it in his blog: http://blog.philippheckel.com/2013/06/28/script-run-rsnapshot-backups-only-once-and-rollback-failed-backups-using-rsnapshot-once/

rsnapshot-once.py

This is my port of the above script for python. Particularly I made it to run properly with Python version 3.4. I made some additions though.

Usage:
rsnapshot-once [-c CFGFILE] (sync|hourly [<N>]|daily|weekly|monthly)
rsnapshot-once -h

Options:
-c CFGFILE      specify the configfile that rsnapshot should use
				[default: /etc/rsnapshot.conf]
-h              display help

By passing the <N> argument with hourly, you can adjust the hourly intervals. Defaults to 6 if not given, meaning every 4 hours.
This script will, as it is designed for now, run in systemd environments. You can use it in non systemd environments by removing or adjusting the wakeup-part.

About

Collection of scripts to use with rsnapshot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published