summaryrefslogtreecommitdiff
path: root/fbin-backup.py
AgeCommit message (Collapse)AuthorFilesLines
2021-06-09Fix linting errorsJon Bergli Heier1-7/+11
Style, unused imports, unused variables, etc. as reported by flake8. Configuration for flake8 has been added to setup.cfg.
2020-10-28Add fbin-backup.pyJon Bergli Heier1-0/+90
This is a backup script which will copy files to a target storage, and optionally add database entries as well. It works by specifying a source and a target config file. Both should have separate storage configured, and files will be copied from the source storage to the target storage. The list of files to copy is read from the source database, which means this must be accessible from where the script is run, not just the storage. If updating databse entries the target database must also be accessible. The target database is also check for any existing file hashes, and any files that would cause a collision will be skipped.