AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20070309175330.748814d2@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<warren.gale@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#mh/Mailbox/sent	0	20070309175221.46938f65@ripper.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Fri, 9 Mar 2007 17:53:57 -0800
From: Andrew Sharp <andy.sharp@onstor.com>
To: Warren Gale <warren.gale@onstor.com>
Subject: Re: script and cron command to rsync your home directory
Message-ID: <20070309175357.5d7a869e@ripper.onstor.net>
In-Reply-To: <20070309175221.46938f65@ripper.onstor.net>
References: <20070309175221.46938f65@ripper.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="MP_uB47xa.sx/DgZ2RQCRPkmg_"

--MP_uB47xa.sx/DgZ2RQCRPkmg_
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Whoops, sent you the wrong one.  Heh.  This is the latest one.

Cheers,

a


On Fri, 9 Mar 2007 17:52:21 -0800 Andrew Sharp
<andy.sharp@onstor.com> wrote:

> Hi Warren,
> 
> You can institute the cron thing, and you can also keep the script in
> a place that you can easily execute it if, for instance, you build
> something and you want it to be available to someone right away.
> 
> Attached is the script.  The cron entry that runs it for me every hour
> is:
> 
> 45 * * * * cd /home/andy/git; /home/andy/bin/git_rsync.sh
> 
> As you can see, the cron entry cd's to /home/andy/git, but I've since
> hacked the script to cd to whatever directory is in SOURCE_DIR
> variable, which you can just edit.  You'll also want to edit the
> DEST_DIR or whatever it's called.  As you can see, I don't rsync
> everything, just my kernel source.  The trees with our source in it
> are just too big and too much churn (makes snapshots take up a lot of
> disk) to hammer mightydog with them.
> 
> Let me know if you have any questions.
> 
> Cheers,
> 
> a

--MP_uB47xa.sx/DgZ2RQCRPkmg_
Content-Type: application/x-shellscript; name=git_rsync.sh
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=git_rsync.sh

IyEvYmluL3NoCgojIGp1c3QgYSBsaXR0bGUgY3JvbiBzY3JpcHQgZmlyZWQgY29uc3RhbnRseSB0
byByc3luYyBnaXQgZGlyZWN0b3J5CgojIHdlIG5pY2UgaXQgZG93biBmb3Igc29tZSByZWFzb24K
U09VUkNFX0RJUj0vaG9tZS9hbmR5L2dpdApCQUNLVVBfRElSPS9ob21lcy9hbmR5cy8uZ2l0CiMg
YmVjYXVzZSB0aGUgYmFja3VwIGlzIGFuIE5GUyBESVIKQkFDS1VQX0hPU1Q9bWlnaHR5ZG9nCgpp
ZiBbICJgcHdkYCIgIT0gIiRTT1VSQ0VfRElSIiBdIDsgdGhlbgoJZWNobyAiQ2hhbmdpbmcgd29y
a2luZyBkaXJlY3RvcnkgdG8gJFNPVVJDRV9ESVIiCgljZCAiJFNPVVJDRV9ESVIiCmZpCgplY2hv
ICJCYWNraW5nIHVwIGRpcmVjdG9yeSAkU09VUkNFX0RJUiIKCmlmIHBpbmcgLWMgMSAkQkFDS1VQ
X0hPU1QgOyB0aGVuCgkJc2V0IC14CiAgICAgICAgbmljZSAtMTUgcnN5bmMgJCogLXV2SGF4IC0t
ZGVsZXRlIC4gJHtCQUNLVVBfRElSfQoJCXNldCAreAogICAgICAgIGVjaG8gIkJhY2t1cCB0byAk
QkFDS1VQX0hPU1QgZmluaXNoZWQgYXQgYGRhdGVgIHdpdGggZXhpdCBjb2RlICQ/IgplbHNlCiAg
ICAgICAgZWNobyAiaG9zdCAkQkFDS1VQX0hPU1Qgbm90IHJlYWNoYWJsZSBhdCBgZGF0ZWAgZm9y
IHJzeW5jIgogICAgICAgIGV4aXQgMQpmaQoK

--MP_uB47xa.sx/DgZ2RQCRPkmg_--
