FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 9d581daa authored by Dr Catherine Pitt's avatar Dr Catherine Pitt
Browse files

Add more logging to zfs-rsync.sh script

parent bd5e7e8d
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ Priority: optional
Section: otherosfs
Maintainer: Frank Lee <rl201@cam.ac.uk>
Architecture: all
Version: 0.9-ch28
Version: 0.9-ch29
Depends: debian-zfs, postgresql, liblockfile-simple-perl, libdbi-perl, libjson-perl, libzfs-perl-chem, libnet-openssh-perl, libdbd-pg-perl, mbuffer, rsync
Description: a backup system using ZFS
Ported (well, mostly) from FreeBSD to a Sane OS.
......@@ -35,13 +35,13 @@ fi
#set -xv
# Do the backup
TIME=`date +%s`
echo Making snapshot with zfs snapshot $DST@$TIME >&2
echo Making snapshot with zfs snapshot $DST@$TIME 2>&1 >>$LOGDIR${HN}_${TAG}
zfs snapshot $DST@$TIME
#DEST=`mount | awk ' $1=="'$DST'" { print $3 } '`
# Maybe we should mount the ZFS
MNTED=`zfs get -H -ovalue mounted $DST`
if [ $MNTED = no ] ; then
echo Mounting ZFS $DST
echo Mounting ZFS $DST 2>&1 >>$LOGDIR${HN}_${TAG}
zfs mount $DST
fi
DEST=`zfs get -H -ovalue mountpoint "$DST"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment