[borg_partclone_backup] erreur arguments

This commit is contained in:
masq 2024-11-21 09:15:11 +01:00
parent 253a764d8e
commit 2d5ddf3fa6
Signed by: masq
GPG Key ID: 35A0D64DDE13B10F

View File

@ -1,11 +1,11 @@
#!/usr/bin/bash #!/usr/bin/bash
# Usage: borg_partclone_backup.sh VGNAME LVNAME SNP_SZ SRV_HOST SRV_BORG_REPO # Usage: borg_partclone_backup.sh VGNAME LVNAME SNP_SZ SRV_HOST SRV_BORG_REPO
VGNAME=`shift` VGNAME=$1
LVNAME=`shift` LVNAME=$2
SNP_NM=$LVNAME-`date +%Y%m%dT%H%M%S` SNP_NM=$LVNAME-`date +%Y%m%dT%H%M%S`
SNP_SZ=`shift` SNP_SZ=$3
SRV_HOST=`shift` SRV_HOST=$4
SRV_BORG_REPO=`shift` SRV_BORG_REPO=$5
# Be root # Be root
test `id -u` == "0" || exit 1 test `id -u` == "0" || exit 1