#!/bin/sh
#
# Make a backup of melone to vivian
#

if [ $UID != 0 ]; then
    sudo backup.sh
    exit 0
fi

/sbin/mount_nfs -PU -r 8192 -w 8192 vivian:/backup/melone /mnt

echo -n "root..."
/usr/bin/rsync -axE --numeric-ids --delete \
  / /mnt/root/
echo "done."

echo -n "beat..."
/usr/bin/rsync -axE --numeric-ids --delete \
  /Users/beat/ /mnt/beat/
echo "done."

/sbin/umount /mnt
