use force mode for backup-server-state

This commit is contained in:
Jérémy Lecour 2022-01-28 16:29:48 +01:00 committed by Jérémy Lecour
parent 8b72415669
commit 8020a357a6
1 changed files with 2 additions and 6 deletions

View File

@ -325,9 +325,7 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
if [ "${SYSTEM}" = "linux" ]; then
if [ -n "${backup_server_state_bin}" ]; then
rm -rf "${server_state_dir}"
${backup_server_state_bin} --etc --dpkg-full --backup-directory "${server_state_dir}"
${backup_server_state_bin} --etc --dpkg-full --force --backup-directory "${server_state_dir}"
else
mkdir -p "${server_state_dir}"
@ -366,9 +364,7 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
fi
else
if [ -n "${backup_server_state_bin}" ]; then
rm -rf "${server_state_dir}"
${backup_server_state_bin} --backup-directory "${server_state_dir}"
${backup_server_state_bin} --force --backup-directory "${server_state_dir}"
else
mkdir -p "${server_state_dir}"