cd $BACKUPTMP
groups
-echo 'I am in:'
-pwd
+echo "I am in: $(pwd)"
echo
-echo building package lists...
+echo "Building package lists..."
dpkg-query -W -f='${Package}\n' > packages
(cd /; find / /usr/ /usr/local/ /var/ -xdev) | sort | uniq > allfiles
dpkg-query -W -f='${Package}\n' | xargs dpkg -L | sort | uniq > debfiles
cat volumes | \
grep -v not-backed-up | \
xargs -I{} -d\\n -- \
- bash -e -c \
+ bash -c \
"F={}.dump$COMPRESS_EXT.aescrypt ;
vos dump -id {} -localauth -clone |
$COMPRESS_PROG | ccrypt -k $KEYFILE -e |
$MOVE_OVER $CURDATE \$F"
-echo backing up databases
+echo "Backing up databases ..."
F=databases.tar$COMPRESS_EXT.aescrypt
tar -C /var/backups/databases/ -cf - . | \
$COMPRESS_PROG | \
mail -a 'From: The Backup Program <backups@deleuze.hcoop.net>' \
-s "automated message: annoying files found on deleuze (please do something about them)" admins@hcoop.net \
< complain \
- || true
-
-echo done
+ || :
+echo "Done."