1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borg_ynh.git synced 2024-09-03 18:16:05 +02:00

Update backup_method

Fix borg backup location
This commit is contained in:
CodeShakingSheep 2024-08-10 13:47:52 -05:00 committed by GitHub
parent b458195190
commit 4fa911d1ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,7 +46,7 @@ This is an automated message from your beloved YunoHost server." | /usr/bin/mail
# About the {now} placeholder:
# https://borgbackup.readthedocs.io/en/stable/usage/create.html#description
# In the archive name, you may use the following placeholders: {now}, {utcnow}, {fqdn}, {hostname}, {user} and some others.
"$borg" create --stats "::${name}-{now}" "$work_dir"
"$borg" create --stats "${BORG_REPO}::${name}-{now}" "$work_dir"
"$borg" prune --glob-archives "${name}-*" --list --keep-hourly 2 --keep-daily=7 --keep-weekly=8 --keep-monthly=12