Brad Campbell wrote:
> mifthas haris wrote:
> 
>>Brad, rsync is a good tool for synchronizing the data, and can be a good
>>backup tool,
>>i've been using it for a while now with a perl wrapper, i like to know
>>more about your
>>backup  strategy with rsync (like for instance, Incremental or epoch,
> 
> #!/bin/sh
> DA=`date +%m%d%y-%H%M`
> 
> sudo rsync -avzxe ssh --delete / gateway:/server/backup/brad/ || exit 1
> if [ ! -z "$1" ] ; then exit 0 ; fi
> echo $DA >> /home/brad/backup-office.history
> echo Renaming backup to correct date
> ssh [EMAIL PROTECTED] mv /server/backup/brad /server/backup/brad-$DA || exit 1
> echo Hardlinking old backup to current backup
> ssh [EMAIL PROTECTED] cp -al /server/backup/brad-$DA /server/backup/brad || 
> exit 1

cool, hard linking has saved me a lot of disk space before.

> echo Completed without error!
> 
> It's kludgy, but it relies on being able to hard link.. works *very* well as 
> when rsync finds a file 
> to modify it unlinks it first.

> So I wind up with a stack of directories
> 
> brad-050205-1300
> brad-050305-1300

Thanks for your input, this weekend i am going to test a bunch of
scripts which i believe would make an admin's life easier. :-)


mifthas haris



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/0XFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/dubailug/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to