From a032babff67b5318768002cfe1e7cb4085c6484a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Mon, 12 Apr 2021 16:22:42 +0200 Subject: [PATCH] Force hard link (remove existing destination file) --- proxmox/backup.pve.content.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxmox/backup.pve.content.sh b/proxmox/backup.pve.content.sh index 43ca016..18fa37e 100755 --- a/proxmox/backup.pve.content.sh +++ b/proxmox/backup.pve.content.sh @@ -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 ## }}} - } # }}}