mirror of
https://github.com/donl/vzpbackup.git
synced 2026-06-30 06:11:58 -06:00
skip root.hdd on incremental backups (saves a lot of time)
This commit is contained in:
parent
392cfa15ea
commit
54ded632bb
1 changed files with 4 additions and 0 deletions
|
|
@ -74,6 +74,10 @@ if [ "$TEMPLATES" = "yes" ]; then
|
|||
RSYNC_OPTS="$RSYNC_OPTS --include=$TEMPLATE_DIR/*"
|
||||
fi
|
||||
|
||||
if [ "$INC_BACKUP" = "yes" ]; then
|
||||
RSYNC_OPTS="$RSYNC_OPTS --exclude=$( VEID=; source /etc/vz/vz.conf; echo "$VE_PRIVATE*/root.hdd/root.hdd" )"
|
||||
fi
|
||||
|
||||
test "$SUSPEND" = "no" && VZCTL_PARAM="$VZCTL_PARAM --skip-suspend"
|
||||
|
||||
# LOCKFILE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue