backupy is a handy backup tool written in python 3
License: GPLv3
Copyright 2024, Balint Fekete
- backup sets are separatable in unique config files
- multiple config files as parameters - able to execute them in one batch (in sequence)
- unique backup tasks in backup sets (up to 99)
- global exclude lists (file, dir, filetype) for entire backup set
- handling broken symlinks for "tar+follow syms+broken syms" use case
- validate mode: only config file validation, no execution
- create md5sum from archive file
- every backup task is customizable
- enabled / disabled
- archive file name
- result dir
- create date-format subdir in result dir
- compression method (tar, targz, tarbz2, zip)
- store files/directories with/without full path
- follow symlinks (yes/no)
- include directories (multiple entries)
- exclude directory names
- exclude directory with fullpath
- exclude filenames
- exclude filetypes (special: '~' → mynovel.doc~ )
- skip task if permission fail
- skip task if directory is non-existent
git clone https://github.com/kaktusztea/backupy.git
./backupy.py --help
./backupy.py
vi ~/.config/backupy/default.cfg (customize)
./backupy.py (start backup with default backup set)
cp ~/.config/backupy/default.cfg /my/path/mybackup.cfg
vi /my/path/mybackup.cfg (customize)
./backupy.py /my/path/mybackup.cfg
- follow symlink does not work with zip compression (old zip standard doesn't support it, will try to hack it anyway :)
-
exclude / include unique files
-
7zip/lz support
-
META section
[META]
description = "This is my set for weekly data backup"
author = myuser
creation_date = 2016-09-01
-
[HOME_CONFIGS] unique backup section
-
remote compression target (ssh, etc)
-
reserve and move n previous backups
-
comment file addition to archive (zip)
-
filelist file creation from archive - after compression
-
pre-calculate estimated file size → predict if free space will be enough or not
-
logging
If you have comments, found a bug or just want to explain how awesome this script is :) - write a mail:
kaktusztea _ at_ protonmail _ dot_ com