Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
It looks like you're doing rsync OPTIONS source-dir OPTIONS dest-dir Try doing rsync OPTIONS OPTIONS source-dir dest-dir On Sat, Dec 12, 2009 at 1:20 PM, Stephen Goldman <sgoldman-3s7WtUTddSA at public.gmane.org> wrote: > Good afternoon Blu, > ? ?I 've been doing a hit and miss with a rsync script I wrote that is not working. > > ? ?Appreciate a review from more experience eyes and suggested reference - > > ? ?RHEL system-Red Hat Enterprise Linux Server release 5.4 (Tikanga) > > > ? ?I have an NFS mount from a NET APP filer that is running ".snapshots" of the directory mounted on > /mnt/external -- wish to sync to /data/biomicro/external AND skip .snapshots - on mnt/external- > send email message - script to be run from cron.daily > > > > ? Combining the --delete and exclude statements is confusing. > > > #!/bin/bash > /usr/bin/rsync -avz --delete / --exclude ".snapshot" ?/mnt/external/. /data/biomicro/external ?>> /var/log/rsync/backup.log mail -s "back cron job external ran" sgoldman-3s7WtUTddSA at public.gmane.org > ~ > When I test from /root ? - I error out. > ] > rsync: -s: unknown option > rsync error: syntax or usage error (code 1) at main.c(1231) [client=2.6.8] > [root@ ~]# > > > > Thanks for your input, > > > > Stephen > > everyday is a learning experience > > > > http://everythinglinux.org/rsync/ > Using Rsync Itself > ?Now on to actually using, or initiating an rsync transfer with rsync itself. It's the same binary as the daemon, just without the "--daemon" flag. It's simplicity is a virtue. I'll start with a commandline that I use in a script to synchronize a Web tree below. > > rsync --verbose ?--progress --stats --compress --rsh=/usr/local/bin/ssh \ > ? ? ?--recursive --times --perms --links --delete \ > ? ? ?--exclude "*bak" --exclude "*~" \ > ? ? ?/www/* webserver:simple_path_name > > > > > > > > > Stephen Goldman > Systems Administrator > Department of Biology > Massachusetts Institute of Technology > 31 Ames Street, Cambridge, MA 02139 > sgoldman-3s7WtUTddSA at public.gmane.org, (617) 452-2595 > _______________________________________________ > Discuss mailing list > Discuss-mNDKBlG2WHs at public.gmane.org > http://lists.blu.org/mailman/listinfo/discuss > -- John Abreau / Executive Director, Boston Linux & Unix AIM abreauj / JABBER jabr-iMZfmuK6BGBxLiRVyXs8+g at public.gmane.org / YAHOO abreauj / SKYPE zusa_it_mgr Email jabr-mNDKBlG2WHs at public.gmane.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9 PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |