rsync /etc with --delete

This commit is contained in:
Jérémy Lecour 2023-12-06 15:20:23 +01:00 committed by Jérémy Lecour
parent 3426b7005e
commit c67c1ca7ad
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY
2 changed files with 3 additions and 1 deletions

View file

@ -14,6 +14,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
### Changed
* rsync `/etc` with `--delete`
### Fixed
### Removed

View file

@ -103,7 +103,7 @@ task_etc() {
rsync_bin=$(command -v rsync)
if [ -n "${rsync_bin}" ]; then
last_result=$(${rsync_bin} -ah --itemize-changes --exclude=.git /etc "${dump_dir}/")
last_result=$(${rsync_bin} -ah --itemize-changes --exclude=.git --delete /etc "${dump_dir}/")
last_rc=$?
if [ ${last_rc} -eq 0 ]; then