You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Aiden Holmes cba64298b6
fix cron instructions
1 week ago
.gitignore ignore *.pyc 1 year ago
LICENSE update license 8 months ago
Makefile add Makefile 1 month ago
README.md fix cron instructions 1 week ago
backr.py make sure use enters argument after option that requires it 1 week ago
logo.png update logo 2 months ago
restor.py -d|--default option in restor to use most recent backup without prompting 3 weeks ago

README.md

backy-py

a simple backup tool

logo

Features

  • Store different backups in different locations

  • Backup a folder and one or more of its subfolders separately

  • Delete old backups to save space without affecting more recent ones

Installation

git clone https://git.teknik.io/aidenholmes/backr-py

cd backr-py

make install # installs to ~/.local/bin

Usage

backr.py -s <source> -l <location> [-n|-c] [-w|-e <comment>]

restor.py -s <source> -l <location>

# Example:

backr.py -s /foo/bar -l /foo/backups -n -w

Removal

cd backr-py

make uninstall # removes from ~/.local/bin

cd ..

rm -rf backr-py/

Scheduling Backups with Cron

  1. Add command with crontab -e
# add this to crontab:

@reboot /home/user/.local/bin/backr.py -s /foo/bar -l /foo/backups -n -w
  1. Change /foo/bar to your folder and /foo/backups to your backup location

  2. Change @reboot to your desired schedule

  3. Change /home/user/.local/bin/backr.py to your backr.py path

  4. Change -n to -c if you want to use compression