diff --git a/lizardfs/README.md b/lizardfs/README.md index 981fb30..3904404 100644 --- a/lizardfs/README.md +++ b/lizardfs/README.md @@ -7,7 +7,7 @@ older snapshots are deleted. To create regular snapshots on a daily base, just run: - sudo cp btrfs-snapshots.sh /etc/cron.daily/btrfs-snapshots + sudo cp lizardfs-snapshots.sh /etc/cron.daily/lizardfs-snapshots If `lizardfs-snapshots` is run from a `cron.daily`, `cron.hourly`, `cron. monthly` or `cron.weekly` directory, the periodity is @@ -22,4 +22,4 @@ e.g. `/etc/lizardfs-snapshots.conf`: DESTINATION=/var/volumes/backup/snapshots MONTHLY_DEL=13 -Try: `lizardfs-snapshots.sh --help` \ No newline at end of file +Try: `lizardfs-snapshots.sh --help` diff --git a/lizardfs/lizardfs-snapshots.sh b/lizardfs/lizardfs-snapshots.sh index 0c24a3e..6f94ee1 100755 --- a/lizardfs/lizardfs-snapshots.sh +++ b/lizardfs/lizardfs-snapshots.sh @@ -111,7 +111,7 @@ for src in "${SOURCES[@]}"; do 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'" + echo " " "lizardfs rremove -l '$f'" done fi else @@ -119,7 +119,7 @@ for src in "${SOURCES[@]}"; do 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" + lizardfs rremove -l "$f" done fi fi