Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Sep 2000 19:19:08 -0500
From:      "Jonel Rienton" <jmr@freebsduser.org>
To:        "Meagan Jia Pi" <meagan@e-lingo.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: using rsync to copy a file system
Message-ID:  <020e01c01eaa$90d3ff20$17161d0a@jonelrienton.org>
References:  <05de01c01e6e$fb772820$e293c83f@elingo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <http://www.pgp.com>;

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>-----BEGIN PGP SIGNED =
MESSAGE-----<BR>Hash:=20
SHA1</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hi Meagan,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i have this on my setup,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:freebsd@garfield">freebsd@garfield</A> p0 =
2000-09-14&nbsp; 7:13PM=20
~<BR>[6] % ls bin/bkpriv<BR>bin/bkpriv<BR><A=20
href=3D"mailto:freebsd@garfield">freebsd@garfield</A> p0 =
2000-09-14&nbsp; 7:13PM=20
~<BR>[7] % cat !$<BR>cat bin/bkpriv<BR>#!/bin/sh<BR># =
~/bin/bkpriv</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>/usr/local/bin/rsync -avzu&nbsp; =
~/Maildir/=20
/mnt/2/freebsd/Maildir</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:freebsd@garfield">freebsd@garfield</A> p0 =
2000-09-14&nbsp; 7:13PM=20
~<BR>[8] % crontab -l<BR># DO NOT EDIT THIS FILE - edit the master and=20
reinstall.<BR># (mycron installed on Sat Sep&nbsp; 9 17:09:30 2000)<BR># =
(Cron=20
version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v<BR>1.12 =
1999/08/28=20
01:15:52 peter Exp $)<BR>MAILTO=3Dnelski<BR>@daily&nbsp; =
~/bin/bkpriv</FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=3DArial size=3D2>
<DIV><BR>looking at your crontab entry, that would run it every hour.=20
also,<BR>i'm using the -vu so it's verbose and update only, =
respectively,=20
read<BR>more on rsync(1)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Jonel Rienton<BR><A=20
href=3D"http://qmail.freebsduser.org">http://qmail.freebsduser.org</A><BR=
>sent by=20
qmail-1.03 on a FreeBSD 4.1-STABLE<BR>- ----- Original Message ----- =
<BR>From:=20
Meagan Jia Pi <BR>To: <A=20
href=3D"mailto:freebsd-questions@FreeBSD.ORG">freebsd-questions@FreeBSD.O=
RG</A>=20
<BR>Sent: Thursday, September 14, 2000 12:12 PM<BR>Subject: using rsync =
to copy=20
a file system</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>Greetings!</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'd like to use rsync to sync /home2 on a local server with /home =
on<BR>a=20
remote server.&nbsp; <BR>Could any of you who is familiar with using =
rsync tell=20
me whether<BR>this is the right approach?<BR>(this is a cron job)</DIV>
<DIV>&nbsp;</DIV>
<DIV>0 * * * * /usr/local/bin/rsync -az --delete=20
remote_server:/home/<BR>/home2</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance.&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>Meagan Jia Pi&nbsp; - ICQ# 58678208<BR><A=20
href=3D"http://www.elingo.com">www.elingo.com</A><BR>Translate the =
Internet!</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>-----BEGIN PGP SIGNATURE-----<BR>Version: PGPfreeware 6.5.8 for =

non-commercial use &lt;<A=20
href=3D"http://www.pgp.com">http://www.pgp.com</A>&gt;</DIV>;
<DIV>&nbsp;</DIV>
<DIV>iQA/AwUBOcFq+6Q0pAI9Fl/WEQKi1ACfWOGHABRIoyUKLxAm5g7aNAUTJRIAoIAY<BR>=
SCziLzULZDVhHA8OXh/aRMVG<BR>=3DIDTe<BR>-----END=20
PGP SIGNATURE-----<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_020B_01C01E80.A7CB7570--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?020e01c01eaa$90d3ff20$17161d0a>