[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sheflug] Re: Backup advice
Alex
> #!/bin/sh
> rsync -a /home/mydocs/ /home/richard/ > /dev/null 2>&1
> mkdir -p /tmp/backup
> export FILE=backup-`date +%Y%m%d`.tgz
> tar -cz /home/richard > /tmp/mybackup/$FILE
> mkisofs -r -J -o /tmp/backup.iso /tmp/backup
> # cdrecord -v speed=2 dev=0,0,0 blank=fast
> cdrecord -v speed=2 dev=0,0,0 -data /tmp/backup.iso
> rm -rf /tmp/backup /tmp/backup.iso
Well, that's sorted it out. I now have an image on a CD which will
untar and that's fine as well.
Before I get started on my usual cron job marathon which is the next
part... what kind of line do I add to the above so that the above
activity is logged to /var/log/messages and will show up on the
screen in front of me whilst I'm watching the messages ?
Thanks
--
Richard
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.