[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Re: Backup advice



On Wed, 16 Jul 2003, Richard Ibbotson wrote:

> Hi
> 
> >  rsync -a /home/mydocuments/ /home/mybackup/ > /dev/null 2>&1
> >  mkdir -p /tmp/backup
> >  export FILE=backup-`date +%Y%m%d`.tgz
> >  tar -cz /home/mybackup > /tmp/backup/$FILE
> >  mkisofs -r -J -o /tmp/backup.iso /tmp/backup
> >  dvdrecord -v speed=2 dev=0,1,0 -data /tmp/backup.iso
> >  rm -rf /tmp/backup /tmp/backup.iso
> 
> 
> 
> Didn't get any further with this.  Was trying to find out how to add
> in something like  /home/user1  /home/user2  /home/user3 so that a
> backup of those folders could be made and burned to the DVD.
> 
> So, replace /home/mydocuments with something that is more
> sophisticated.  Not quite sure which bit to change.  The last one
> about this was helpful but not completely understandable.

If you change it so that it says :-

rsync -a /home/mydocuments /home/user1 /home/user2 /home/mybackup/ > /dev/null 2>&1

then the subdirectories will be created under /home/mybackup and they will 
all be backed up.

HTH

Regards
Lance

-- 
uklinux.net - The ISP of choice for the discerning Linux user. 

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.