Fix var names

This commit is contained in:
2024-02-10 12:25:20 +01:00
parent 46c3bd9258
commit ae692c8071
2 changed files with 7 additions and 7 deletions

View File

@ -1,11 +1,11 @@
#!/bin/bash
# Borg repo location
REPOSITORY={{borg.repo.path}}
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}}
# Clean old backups
borg prune -v $REPOSITORY --keep-daily=3 --keep-weekly=2 --keep-monthly=12
echo "`date +[%F/%T]` Done!"