add excludes to borg_backup.sh
This commit is contained in:
parent
c48fd57494
commit
0d33dc2ea4
|
@ -15,25 +15,26 @@ info "Starting backup"
|
||||||
# Backup the most important directories into an archive named after
|
# Backup the most important directories into an archive named after
|
||||||
# the machine this script is currently running on:
|
# the machine this script is currently running on:
|
||||||
|
|
||||||
borg create \
|
borg create \
|
||||||
--verbose \
|
--verbose \
|
||||||
--filter AME \
|
--filter AME \
|
||||||
--list \
|
--list \
|
||||||
--stats \
|
--stats \
|
||||||
--show-rc \
|
--show-rc \
|
||||||
--compression lz4 \
|
--compression lz4 \
|
||||||
--exclude-caches \
|
--exclude-caches \
|
||||||
--exclude '/home/*/.cache/*' \
|
--exclude '/home/*/.cache/*' \
|
||||||
--exclude '/var/cache/*' \
|
--exclude '/var/cache/*' \
|
||||||
--exclude '/var/tmp/*' \
|
--exclude '/var/tmp/*' \
|
||||||
--exclude '/share/media*' \
|
--exclude '/share/media/*' \
|
||||||
\
|
--exclude '/var/lib/libvirt/images/*' \
|
||||||
::'{hostname}-{now}' \
|
\
|
||||||
/etc \
|
::'{hostname}-{now}' \
|
||||||
/home \
|
/etc \
|
||||||
/root \
|
/home \
|
||||||
/var \
|
/root \
|
||||||
/usr/local \
|
/var \
|
||||||
|
/usr/local \
|
||||||
|
|
||||||
backup_exit=$?
|
backup_exit=$?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue