Add --force option to rsync, to enable deleting non-empty dirs
This commit is contained in:
parent
422069e40c
commit
73df2f04f9
|
@ -99,7 +99,7 @@ else
|
|||
rep="/bsd /bin /boot /sbin /usr"
|
||||
fi
|
||||
|
||||
rsync -av --delete --ignore-errors \
|
||||
rsync -av --delete --force --ignore-errors \
|
||||
--exclude "lost+found" \
|
||||
--exclude ".nfs.*" \
|
||||
--exclude "/var/log" \
|
||||
|
|
Loading…
Reference in a new issue