Skip to content
Snippets Groups Projects
Verified Commit 44eb1659 authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

borg-client: Exclude archbuild dirs from backup

parent 1ae41978
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,14 @@ set -e
# In case there is postgresql running, dump all of it somewhere.
systemctl status postgresql && /usr/local/bin/backup-postgres.sh || true
borg create -v --stats -C lz4 -e /proc \
-e /sys -e /dev -e /run -e /tmp -e /var/cache \
borg create -v --stats -C lz4 \
-e /proc \
-e /sys \
-e /dev \
-e /run \
-e /tmp \
-e /var/cache \
-e /var/lib/archbuild \
-e /var/lib/archbuilddest \
{{ backup_host }}:{{ backup_dir }}::$(date -I) /
borg prune -v {{ backup_host }}:{{ backup_dir }} --keep-daily=7 --keep-weekly=4 --keep-monthly=6
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment