Split exclude and backup
This commit is contained in:
1 parent
a60d113289
commit
eab5ff4f0b
2 files changed
+3
-2
No files matched your search
@@ -5,7 +5,7 @@ REPOSITORY={{borg_repo_path}}
|
||||
|
||||
echo "`date +[%F/%T]` Starting the backup"
|
||||
# Create backup
|
||||
borg create -v --compression lzma,6 --stats $REPOSITORY::$(date +%Y-%m-%d-%H:%M) {{borg_backup_paths}}
|
||||
borg create -v --compression lzma,6 --stats $REPOSITORY::$(date +%Y-%m-%d-%H:%M) {{borg_backup_paths}} {{borg_exclude_paths}}
|
||||
# Clean old backups
|
||||
borg prune -v $REPOSITORY --keep-daily=3 --keep-weekly=2 --keep-monthly=12
|
||||
echo "`date +[%F/%T]` Done!"
|
||||
|
||||
Reference in new issue
Block a user