[Techtalk] rsync backup script

Kai MacTane kmactane at GothPunk.com
Mon Jun 21 17:00:24 EST 2004


At 6/21/04 04:41 PM , Carla Schroder wrote:
>Does anyone have a really really cool rsync script they'd like to share? 
>All I know is script 'rsync -a  -e ssh sourc dest' and slap it into cron.
>
>Something that does some error-checking and logging would be luverly. It's 
>for publication, so you'll get fame and glory. I've tested a number of 
>scripts I found on Google, and haven't found anything that doesn't need a 
>lot of babysitting, which rather defeats the purpose. For Linux only, 
>don't worry
>about exotic Unixes.

Does it have to be rsync, or can it use scp? I have a fairly nifty bash 
script that tars up a whole bunch of stuff, then scps the tar file to 
another machine. It also does a variety of other stuff, like mounts and 
umounts the partition the tar file goes onto, removes preexisting backups 
from that partition if it looks like there won't be enough space, and so on.

                                                 --Kai MacTane
----------------------------------------------------------------------
"When the clouds pull apart/And the Moon changes phases,
  In the quiet, secret places/Are you there? Are you there?"
                                                 --Concrete Blonde,
                                                  "Darkening of the
                                                   Light"



More information about the Techtalk mailing list