Add --exclude option to the backup script

This commit is contained in:
2026-09-22 16:21:44 +00:00
parent e9b80eaa50
commit 9c26a0c48e
2 changed files with 20 additions and 0 deletions
+6
View File
@@ -20,6 +20,12 @@ Run the first backup manually in the shell, e.g.:
**NOTE: unfortunately there's something wrong with the script and it does not output anything to the log unless the `--verbose` flag is passed so I just always pass the flag.**
To leave parts of the source folder out of the snapshot, pass `--exclude` one or more times (same pattern syntax as restic's own `--exclude`), e.g. to skip a live database directory that is dumped separately:
```
./backup.sh --exclude /home/user/app/data/postgres --exclude /home/user/app/data/tmp ... /home/user/app sftp:storage-server:/backups/app --verbose
```
For the integrity check (note it may take a long time to run for large repos), e.g.:
```