Force hard link (remove existing destination file)

This commit is contained in:
Jeremy Gardais 2021-04-12 16:22:42 +02:00
parent e872fdafaf
commit a032babff6
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 2 deletions

View File

@ -117,11 +117,10 @@ main() { # {{{
## }}} ## }}}
## Create an hard link to pve.latest.tar.gz {{{ ## Create an hard link to pve.latest.tar.gz {{{
### OR exit with error code 3 if it fails ### OR exit with error code 3 if it fails
ln -- "${local_bkp_dir}/pve.${TODAY_VAR}.tar.gz" "${local_bkp_dir}/pve.latest.tar.gz" \ ln --force -- "${local_bkp_dir}/pve.${TODAY_VAR}.tar.gz" "${local_bkp_dir}/pve.latest.tar.gz" \
|| exit 3 || exit 3
## }}} ## }}}
} }
# }}} # }}}