A deduplicating automatic backup tool
- python3 @ windows, linux
- pip install sortedcontainers --user
python mywayback.py target-directory
The target-directory specified on the command line MUST contain a subdirectory named 'config/'. Files in the 'config/' subdirectory are read in alphabetical order as the configuration files. File extensions are irrelevant. The content of a configuration file must look like this:
# comment
+/some/directory/to/backup
-/some/other/directory/to/skip
(Of course you can put any number of +, -, and # lines...)
The tool creates in the target directory two new subdirs:
db/ This contains the name-hash database in the db/by-name, and the main data in the db/by-hash. DO NOT TOUCH ANYTHING UNDER.
snapshot/ Here with each run a new backup snapshot with the data and time is created and filled. Files here are hard-links to
the main data in the db/by-hash directory.