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 c65d8ca5d4
prefer teknik link
2 weeks ago
.gitignore ignore *.pyc 1 year ago
LICENSE update license 7 months ago
Makefile add Makefile 3 weeks ago
README.md prefer teknik link 2 weeks ago
backr.py create .backr-location even input is blank 2 weeks ago
logo.png update logo 4 weeks ago
restor.py use newlines instead of empty prints 1 month 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

cd /foo/bar

backr.py # to backup

restor.py # to restore

Removal

cd backr-py

make uninstall # removes from ~/.local/bin

cd ..

rm -rf backr-py/

Scheduling Backups with Cron

  1. Backup directory manually to set backr location
cd /foo/bar

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

@reboot cd /foo/bar; /home/user/.local/bin/backr.py -n -w
  1. Change @reboot to your desired schedule

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

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