X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C762B7.D194CB11@onstor-exch02.onstor.net>; Fri, 9 Mar 2007 19:00:03 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: RE: script and cron command to rsync your home directory
Date: Fri, 9 Mar 2007 19:00:03 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E02C1B6BA@onstor-exch02.onstor.net>
In-Reply-To: <20070309175357.5d7a869e@ripper.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: script and cron command to rsync your home directory
Thread-Index: AcditvcNOwzV7J45QAqusDmjoOyncgAAK/6w
From: "Warren Gale" <warren.gale@onstor.com>
To: "Andy Sharp" <andy.sharp@onstor.com>


Cool  Thanks.

-----Original Message-----
From: Andy Sharp=20
Sent: Friday, March 09, 2007 5:54 PM
To: Warren Gale
Subject: Re: script and cron command to rsync your home directory

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,
>=20
> 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.
>=20
> Attached is the script.  The cron entry that runs it for me every hour
> is:
>=20
> 45 * * * * cd /home/andy/git; /home/andy/bin/git_rsync.sh
>=20
> 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.
>=20
> Let me know if you have any questions.
>=20
> Cheers,
>=20
> a
