CD backup

Since my last laptop with a working CD drive is dying this a simple script which does the following ops once the CD is inserted and auto-mounter: finds the mount point copies the files ejects the CD <pre lang="bash">cd "$(cat /proc/mounts | grep iso9660 | cut -d' ' -f2 | sed -e 's#\\040# #g')" && cp * /media/backup/data/ && cd && eject /dev/sr0

<span title='2014-03-07 14:57:38 +0000 UTC'>March 7, 2014</span>&nbsp;·&nbsp;len

Archive all files modified in the last 24h

find . -mtime 1 -type f -print0 | tar -czvf $SYNC_DIR/$BFILE -T - --null

<span title='2013-10-01 17:09:42 +0000 UTC'>October 1, 2013</span>&nbsp;·&nbsp;len