https://github.com/menacingmecha/backup
Script I use for backing up files to external drives
https://github.com/menacingmecha/backup
Last synced: 8 months ago
JSON representation
Script I use for backing up files to external drives
- Host: GitHub
- URL: https://github.com/menacingmecha/backup
- Owner: MenacingMecha
- License: mit
- Created: 2020-09-07T15:32:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-28T16:43:30.000Z (almost 4 years ago)
- Last Synced: 2025-02-13T23:34:59.056Z (over 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Backup
Script I use for backing up data to external drives.
Reads paths from a yaml config file, and then runs rsync for each valid source/dest path combination.
```
usage: backup.py [-h] [-c CONFIG_PATH]
optional arguments:
-h, --help show this help message and exit
-c CONFIG_PATH Specify an alternate config path. Defaults to 'config.yaml'.
```
## Config Strucutre
```yaml
paths:
backup1:
source: "/path/to/source/dir1/"
dest: "/path/to/dest/dir1"
backup2:
source: "/path/to/source/dir2/"
dest: "/path/to/dest/dir2"
optional-delete-flag:
source: "/path/to/source/delete-dir/"
dest: "/path/to/dest/delete-dir"
delete: true # files in dest that aren't in source will be deleted
optional-whitelist-flag:
source: "/path/to/source/only-want-to-backup-archives-dir/"
dest: "/path/to/dest/only-want-to-backup-archives-dir"
whitelist: # only includes files that match the following list items
- "*.zip"
- "*.7z"
```