From ae2bb5ba04041d9b1936367f6f001408d96a5551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 26 Sep 2018 11:43:50 +0200 Subject: [PATCH] wait for snapshot --- README.md | 4 ++-- lizardfs/{lizsrdfs-snapshots.sh => lizardfs-snapshots.sh} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename lizardfs/{lizsrdfs-snapshots.sh => lizardfs-snapshots.sh} (95%) mode change 100755 => 100644 diff --git a/README.md b/README.md index 008d2df..d1d4277 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ Backup And Snapshot Scripts =========================== -- [BTRFS](btrfs) -- [LizardFs](lizardfs) +- [btrfs](btrfs) +- [lizardfs](lizardfs) Installation ------------ diff --git a/lizardfs/lizsrdfs-snapshots.sh b/lizardfs/lizardfs-snapshots.sh old mode 100755 new mode 100644 similarity index 95% rename from lizardfs/lizsrdfs-snapshots.sh rename to lizardfs/lizardfs-snapshots.sh index 2b02b06..0c24a3e --- a/lizardfs/lizsrdfs-snapshots.sh +++ b/lizardfs/lizardfs-snapshots.sh @@ -108,7 +108,7 @@ for src in "${SOURCES[@]}"; do target="${src##*/}${periodity}" if test $dryrun -eq 1; then echo -e "→ \e[1mbackup $src\e[0m" - echo " " "lizardfs makesnapshot '${src}' '${DESTINATION}/${target}${date}'" + echo " " "lizardfs makesnapshot -lf '${src}' '${DESTINATION}/${target}${date}'" if test -n "$del"; then for f in $(ls -d1 "${DESTINATION}/${target}"-* | sort -r | tail -n +"$del"); do echo " " "lizardfs rremove '$f'" @@ -116,7 +116,7 @@ for src in "${SOURCES[@]}"; do fi else echo -e "→ \e[1mbackup $src\e[0m" - lizardfs makesnapshot "${src}" "${DESTINATION}/${target}${date}" + lizardfs makesnapshot -lf "${src}" "${DESTINATION}/${target}${date}" if test -n "$del"; then for f in $(ls -d1 "${DESTINATION}/${target}"-* | sort -r | tail -n +"$del"); do lizardfs rremove "$f"