wait for snapshot

master
Marc Wäckerlin 6 years ago
parent 42f160dd51
commit ae2bb5ba04
  1. 4
      README.md
  2. 4
      lizardfs/lizardfs-snapshots.sh

@ -1,8 +1,8 @@
Backup And Snapshot Scripts
===========================
- [BTRFS](btrfs)
- [LizardFs](lizardfs)
- [btrfs](btrfs)
- [lizardfs](lizardfs)
Installation
------------

@ -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"
Loading…
Cancel
Save