-echo volume list:
-cat volumes | grep -v not-backed-up
-
-IFS="
-"
-
-for A in `cat volumes | grep -v not-backed-up`
-do \
- echo "dumping afs volume $A..."
- vos dump -id $A -localauth -clone | \
- $COMPRESS_PROG | \
- ccrypt -k $KEYFILE -e | \
- catsync $A.dump$COMPRESS_EXT.aescrypt
- echo " finished dumping afs volume $A."
-done
-
-# for some reason this has been causing the backups to abort...
-#echo backing up databases
-#tar -C /var/backups/databases/ -cf - . | \
-# $COMPRESS_PROG | \
-# ccrypt -k $KEYFILE -e \
-# | catsync databases.tar$COMPRESS_EXT.aescrypt
+cat volumes | \
+ grep -v not-backed-up | \
+ xargs -I{} -d\\n -- \
+ bash -c \
+ "vos dump -id {} -localauth -clone | $COMPRESS_PROG | ccrypt -k $KEYFILE -e | catsync {}.dump$COMPRESS_EXT.aescrypt"
+
+echo backing up databases
+tar -C /var/backups/databases/ -cf - . | \
+ $COMPRESS_PROG | \
+ ccrypt -k $KEYFILE -e \
+ | catsync databases.tar$COMPRESS_EXT.aescrypt
+
+grep '[a-z/]' complain && \
+ mail -a 'From: Adam Megacz <megacz@hcoop.net>' \
+ -s "automated message: annoying files found on deleuze (please do something about them)" admins@hcoop.net \
+ < complain \
+ || true