From owner-freebsd-questions Thu Sep 14 17: 8:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.jonelrienton.org (dsl-64-34-25-237.telocity.com [64.34.25.237]) by hub.freebsd.org (Postfix) with SMTP id 5204C37B423 for ; Thu, 14 Sep 2000 17:08:20 -0700 (PDT) Received: (qmail 59544 invoked from network); 15 Sep 2000 00:25:55 -0000 Received: from debian (10.29.22.23) by zeus with SMTP; 15 Sep 2000 00:25:55 -0000 Message-ID: <020e01c01eaa$90d3ff20$17161d0a@jonelrienton.org> From: "Jonel Rienton" To: "Meagan Jia Pi" , References: <05de01c01e6e$fb772820$e293c83f@elingo.com> Subject: Re: using rsync to copy a file system Date: Thu, 14 Sep 2000 19:19:08 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_020B_01C01E80.A7CB7570" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_020B_01C01E80.A7CB7570 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Meagan, i have this on my setup, freebsd@garfield p0 2000-09-14 7:13PM ~ [6] % ls bin/bkpriv bin/bkpriv freebsd@garfield p0 2000-09-14 7:13PM ~ [7] % cat !$ cat bin/bkpriv #!/bin/sh # ~/bin/bkpriv /usr/local/bin/rsync -avzu ~/Maildir/ /mnt/2/freebsd/Maildir freebsd@garfield p0 2000-09-14 7:13PM ~ [8] % crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (mycron installed on Sat Sep 9 17:09:30 2000) # (Cron version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v 1.12 1999/08/28 01:15:52 peter Exp $) MAILTO=3Dnelski @daily ~/bin/bkpriv looking at your crontab entry, that would run it every hour. also, i'm using the -vu so it's verbose and update only, respectively, read more on rsync(1) Jonel Rienton http://qmail.freebsduser.org sent by qmail-1.03 on a FreeBSD 4.1-STABLE - ----- Original Message -----=20 From: Meagan Jia Pi=20 To: freebsd-questions@FreeBSD.ORG=20 Sent: Thursday, September 14, 2000 12:12 PM Subject: using rsync to copy a file system Greetings! I'd like to use rsync to sync /home2 on a local server with /home on a remote server. =20 Could any of you who is familiar with using rsync tell me whether this is the right approach? (this is a cron job) 0 * * * * /usr/local/bin/rsync -az --delete remote_server:/home/ /home2 Thanks in advance. =20 Meagan Jia Pi - ICQ# 58678208 www.elingo.com Translate the Internet! -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.8 for non-commercial use iQA/AwUBOcFq+6Q0pAI9Fl/WEQKi1ACfWOGHABRIoyUKLxAm5g7aNAUTJRIAoIAY SCziLzULZDVhHA8OXh/aRMVG =3DIDTe -----END PGP SIGNATURE----- ------=_NextPart_000_020B_01C01E80.A7CB7570 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
-----BEGIN PGP SIGNED = MESSAGE-----
Hash:=20 SHA1
 
Hi Meagan,
 
i have this on my setup,
 
freebsd@garfield p0 = 2000-09-14  7:13PM=20 ~
[6] % ls bin/bkpriv
bin/bkpriv
freebsd@garfield p0 = 2000-09-14  7:13PM=20 ~
[7] % cat !$
cat bin/bkpriv
#!/bin/sh
# = ~/bin/bkpriv
 
/usr/local/bin/rsync -avzu  = ~/Maildir/=20 /mnt/2/freebsd/Maildir
 
freebsd@garfield p0 = 2000-09-14  7:13PM=20 ~
[8] % crontab -l
# DO NOT EDIT THIS FILE - edit the master and=20 reinstall.
# (mycron installed on Sat Sep  9 17:09:30 2000)
# = (Cron=20 version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v
1.12 = 1999/08/28=20 01:15:52 peter Exp $)
MAILTO=3Dnelski
@daily  = ~/bin/bkpriv
 

looking at your crontab entry, that would run it every hour.=20 also,
i'm using the -vu so it's verbose and update only, = respectively,=20 read
more on rsync(1)
 
Jonel Rienton
http://qmail.freebsduser.orgsent by=20 qmail-1.03 on a FreeBSD 4.1-STABLE
- ----- Original Message ----- =
From:=20 Meagan Jia Pi
To: freebsd-questions@FreeBSD.O= RG=20
Sent: Thursday, September 14, 2000 12:12 PM
Subject: using rsync = to copy=20 a file system
 

Greetings!
 
I'd like to use rsync to sync /home2 on a local server with /home = on
a=20 remote server. 
Could any of you who is familiar with using = rsync tell=20 me whether
this is the right approach?
(this is a cron job)
 
0 * * * * /usr/local/bin/rsync -az --delete=20 remote_server:/home/
/home2
 
Thanks in advance. 
 
Meagan Jia Pi  - ICQ# 58678208
www.elingo.com
Translate the = Internet!
 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for = non-commercial use <http://www.pgp.com>
 
iQA/AwUBOcFq+6Q0pAI9Fl/WEQKi1ACfWOGHABRIoyUKLxAm5g7aNAUTJRIAoIAY
= SCziLzULZDVhHA8OXh/aRMVG
=3DIDTe
-----END=20 PGP SIGNATURE-----
------=_NextPart_000_020B_01C01E80.A7CB7570-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message