Exclude lock files/directories from backup
This commit is contained in:
parent
2ffb67cc35
commit
701b1fc6f4
|
@ -161,7 +161,7 @@ main() { # {{{
|
|||
|
||||
## Create an archive of /etc/pve to $first_bkp_dir {{{
|
||||
### OR exit with error code 2 if it fails
|
||||
tar czf "${first_bkp_dir}/pve.${TODAY_VAR}.tar.gz" -C /etc/ pve/ \
|
||||
tar --exclude='*/lock' -czf "${first_bkp_dir}/pve.${TODAY_VAR}.tar.gz" -C /etc/ pve/ \
|
||||
|| exit 2
|
||||
## }}}
|
||||
## Create an hard link to pve.latest.tar.gz {{{
|
||||
|
|
Loading…
Reference in New Issue