From ea67543ab86b00450222a13cd39ad0686b1ce34e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 18 Apr 2018 11:38:36 +0200 Subject: [PATCH] typo --- README.md | 4 ++-- lizardfs/lizsrdfs-snapshots.sh | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1b001a3..008d2df 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ Backup And Snapshot Scripts =========================== -- [BTRFS](btrfs/README.md) -- [LizardFs](lizardfs/README.md) +- [BTRFS](btrfs) +- [LizardFs](lizardfs) Installation ------------ diff --git a/lizardfs/lizsrdfs-snapshots.sh b/lizardfs/lizsrdfs-snapshots.sh index e61ddec..4acbc89 100755 --- a/lizardfs/lizsrdfs-snapshots.sh +++ b/lizardfs/lizsrdfs-snapshots.sh @@ -46,11 +46,13 @@ OPTIONS CONFIGURATION FILE -You can have a configuration file lizardfs-snapshots.conf either in /etc or in your home. +You can have a configuration file lizardfs-snapshots.conf either in +/etc or in your home. This may define the following bash variables: HOURLY_DEL, DAILY_DEL, WEEKLY_DEL, MONTHLY_DEL - defining the parameter --del for hourly, daily, weekly, monthly + defining the parameter --del for + hourly, daily, weekly, monthly SOURCES bash array that defines the sources to backup DESTINATION snapshot target path @@ -105,7 +107,7 @@ for src in "${SOURCES[@]}"; do target="${src##*/}${periodity}" if test $dryrun -eq 1; then echo -e "→ \e[1mbackup $src\e[0m" - echo " " "lizardfs snapshot '${src}' '${DESTINATION}/${target}${date}'" + echo " " "lizardfs makesnapshot '${src}' '${DESTINATION}/${target}${date}'" if test -n "$del"; then for f in $(ls -d1 "${DESTINATION}/${target}"-* | sort -r | tail -n +"$del"); do echo " " "rm -rf '$f'" @@ -113,7 +115,7 @@ for src in "${SOURCES[@]}"; do fi else echo -e "→ \e[1mbackup $src\e[0m" - lizardfs snapshot "${src}" "${DESTINATION}/${target}${date}" + lizardfs makesnapshot "${src}" "${DESTINATION}/${target}${date}" if test -n "$del"; then for f in $(ls -d1 "${DESTINATION}/${target}"-* | sort -r | tail -n +"$del"); do rm -rf "$f"