An open API service indexing awesome lists of open source software.

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

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"
```