Date Series Part 2 of script Tags bash / script

I spent a couple of hours backing up some of my cd's onto my hard drive where I can easily play them too. I used 'Sound Juicer' to do this and it more or less succeeded. But I didn't want to back them up to my external USB hard drive so I amended the rsync command and it now shows

if [ -d /media/disk/ ]; then
 /usr/bin/rsync -av --exclude *.mp2 --exclude *.ogg /home/boztu/ /media/disk/`/bin/date +%Y%m%d`/ \ >> /home/boztu/cron/backup.txt
 if [ -d /media/usb/ ]; then
 /usr/bin/rsync -av --exclude *.mp2 --exclude *.ogg /home/boztu/ /media/usb/`/bin/date +%Y%m%d`/ \ >> /home/boztu/cron/backup.txt

In the testing that I've done it has the album titles but totally excludes the tracks themselves, which is what I wanted.


comments powered by Disqus