Force hard link (remove existing destination file)
This commit is contained in:
parent
e872fdafaf
commit
a032babff6
|
@ -117,11 +117,10 @@ main() { # {{{
|
|||
## }}}
|
||||
## Create an hard link to pve.latest.tar.gz {{{
|
||||
### 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
|
||||
## }}}
|
||||
|
||||
|
||||
}
|
||||
# }}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue