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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] -----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=nelski @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 ----- From: Meagan Jia Pi To: freebsd-questions@FreeBSD.ORG 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. 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. 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 =IDTe -----END PGP SIGNATURE----- [-- Attachment #2 --] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 5.50.4207.2601" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>-----BEGIN PGP SIGNED MESSAGE-----<BR>Hash: SHA1</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>Hi Meagan,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>i have this on my setup,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2><A href="mailto:freebsd@garfield">freebsd@garfield</A> p0 2000-09-14 7:13PM ~<BR>[6] % ls bin/bkpriv<BR>bin/bkpriv<BR><A href="mailto:freebsd@garfield">freebsd@garfield</A> p0 2000-09-14 7:13PM ~<BR>[7] % cat !$<BR>cat bin/bkpriv<BR>#!/bin/sh<BR># ~/bin/bkpriv</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2>/usr/local/bin/rsync -avzu ~/Maildir/ /mnt/2/freebsd/Maildir</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial size=2><A href="mailto:freebsd@garfield">freebsd@garfield</A> p0 2000-09-14 7:13PM ~<BR>[8] % crontab -l<BR># DO NOT EDIT THIS FILE - edit the master and reinstall.<BR># (mycron installed on Sat Sep 9 17:09:30 2000)<BR># (Cron version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v<BR>1.12 1999/08/28 01:15:52 peter Exp $)<BR>MAILTO=nelski<BR>@daily ~/bin/bkpriv</FONT></DIV> <DIV> </DIV><FONT face=Arial size=2> <DIV><BR>looking at your crontab entry, that would run it every hour. also,<BR>i'm using the -vu so it's verbose and update only, respectively, read<BR>more on rsync(1)</DIV> <DIV> </DIV> <DIV>Jonel Rienton<BR><A href="http://qmail.freebsduser.org">http://qmail.freebsduser.org</A><BR>sent by qmail-1.03 on a FreeBSD 4.1-STABLE<BR>- ----- Original Message ----- <BR>From: Meagan Jia Pi <BR>To: <A href="mailto:freebsd-questions@FreeBSD.ORG">freebsd-questions@FreeBSD.ORG</A> <BR>Sent: Thursday, September 14, 2000 12:12 PM<BR>Subject: using rsync to copy a file system</DIV> <DIV> </DIV> <DIV><BR>Greetings!</DIV> <DIV> </DIV> <DIV>I'd like to use rsync to sync /home2 on a local server with /home on<BR>a remote server. <BR>Could any of you who is familiar with using rsync tell me whether<BR>this is the right approach?<BR>(this is a cron job)</DIV> <DIV> </DIV> <DIV>0 * * * * /usr/local/bin/rsync -az --delete remote_server:/home/<BR>/home2</DIV> <DIV> </DIV> <DIV>Thanks in advance. </DIV> <DIV> </DIV> <DIV>Meagan Jia Pi - ICQ# 58678208<BR><A href="http://www.elingo.com">www.elingo.com</A><BR>Translate the Internet!</DIV> <DIV> </DIV> <DIV><BR>-----BEGIN PGP SIGNATURE-----<BR>Version: PGPfreeware 6.5.8 for non-commercial use <<A href="http://www.pgp.com">http://www.pgp.com</A>></DIV> <DIV> </DIV> <DIV>iQA/AwUBOcFq+6Q0pAI9Fl/WEQKi1ACfWOGHABRIoyUKLxAm5g7aNAUTJRIAoIAY<BR>SCziLzULZDVhHA8OXh/aRMVG<BR>=IDTe<BR>-----END PGP SIGNATURE-----<BR></FONT></DIV></BODY></HTML>help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?020e01c01eaa$90d3ff20$17161d0a>
