rremove must have option -l to complete

master
Marc Wäckerlin 6 years ago
parent 7e727c7672
commit ce401ce289
  1. 4
      lizardfs/README.md
  2. 4
      lizardfs/lizardfs-snapshots.sh

@ -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`
Try: `lizardfs-snapshots.sh --help`

@ -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

Loading…
Cancel
Save