ell1e / backup-py

JUST A MIRROR, GO HERE: https://codeberg.org/ell1e/backup-py

Home Page:https://codeberg.org/ell1e/backup-py

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

backup.py

A very simple rsnapshot wrapper to help server admins. Please note this script comes with NO WARRANTY TO THE EXTENT PERMITTED BY LAW.

How to use

backup.py uses a very simple config file to do backups (please note that ssh key login without password is assumed to be possible for any remote targets):

backups:
  my-random-backup:
    source: myuser@my-remote-server.com:/srv/
    target: /home/myuser/mybackup-folder/
    interval: 1d
    snapshots: 7

Place this config in the working directory you will run backup.py in (not necessarily where you copy your snapshots from/to) in a file named backup-py-config.yml - or alternatively just use the -c option to specify its location.

Then, simply run backup.py regularly and at each run it will check if the last snapshot is older than the given interval and add a new one. We recommend you use anacron for this. Important: make sure not to schedule runs in too short intervals to avoid the script being run twice before the old invocation has finished running.

License

backup.py is free software, check the license.

About

JUST A MIRROR, GO HERE: https://codeberg.org/ell1e/backup-py

https://codeberg.org/ell1e/backup-py

License:Other


Languages

Language:Python 100.0%