Borgbackup: Difference between revisions
Line 64: | Line 64: | ||
==Example Scripts== | ==Example Scripts== | ||
{{hidden | backup.sh | | {{hidden | backup.sh | | ||
< | <syntaxhighlight lang="bash"> | ||
REPOSITORY="my_server:~/Backups/my_backup" | REPOSITORY="my_server:~/Backups/my_backup" | ||
ARCHIVE_NAME="{hostname}-{utcnow}" | ARCHIVE_NAME="{hostname}-{utcnow}" | ||
Line 108: | Line 108: | ||
$BORG_EXEC prune "${BORG_PRUNE_FLAGS[@]}" "${REPOSITORY}" | $BORG_EXEC prune "${BORG_PRUNE_FLAGS[@]}" "${REPOSITORY}" | ||
fi | fi | ||
</ | </syntaxhighlight> | ||
}} | }} | ||
==Resources== | ==Resources== | ||
* [https://practical-admin.com/blog/backups-using-borg/ practical-admin backups using borg] | * [https://practical-admin.com/blog/backups-using-borg/ practical-admin backups using borg] |