[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=3Dbackup-`date +%Y%m%d`.tgz
> tar -cz /home/richard > /tmp/mybackup/$FILE
> mkisofs -r -J -o /tmp/backup.iso /tmp/backup
> # cdrecord -v speed=3D2 dev=3D0,1,0 blank=3Dfast
> cdrecord -v speed=3D2 dev=3D0,1,0 -data /tmp/backup.iso
> rm -rf /tmp/backup /tmp/backup.iso
Okay ... I've done './backup' in /usr/bin to start the script. It
worked fine until it got down to the bit about "cdrecord - v
speed=3D2" and then it barfed. It tells me that ...
cdrecord: Bad Option: speed=3D2
and then it reeled off a longish list of options that I could use.
None of which was in plain English so I couldn't understand it. One
of the options was dev=target which selects a SCSI CD-ROM which is
what my CD-ROM is. So, what do I change here ?
Other thing is .. when I finally get the script to work the cron
job.. ... you said use ... [at] daily. Thing is, I've always found with
SuSE cron jobs that they are a bit choosy about the syntax that you
use. In my own experience it doesn't like thing like [at] daily. It
probably won't work. Anything else I can use ?
Thanks
--
Richard
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.