Add backup path in vars
This commit is contained in:
@ -2,12 +2,10 @@
|
||||
|
||||
# Borg repo location
|
||||
REPOSITORY={{borg.repo.path}}
|
||||
# Example of remote repo
|
||||
# REPOSITORY=ssh://backuper@192.168.1.100/{{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) /etc/ /var/spool/ --exclude=*.log
|
||||
borg create -v --compression lzma,6 --stats $REPOSITORY::$(date +%Y-%m-%d-%H:%M) {{borg.backup.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