Update of several SPECIFIC files

Bill Schuller bill at drdestructo.com
Sat Nov 10 03:41:51 EST 2001


Thanks Dave. That worked. Here's the syntax I used:

rsync -av --rsync-path=/usr/local/bin/rsync --include-from updatesys.inc /
remotehost:/

----- Original Message -----
From: "Dave Dykstra" <dwd at bell-labs.com>
To: "Bill Schuller" <bill at drdestructo.com>
Cc: <rsync at lists.samba.org>
Sent: Thursday, November 08, 2001 4:00 PM
Subject: Re: Update of several SPECIFIC files


> Because you specified only the target and not the destination, rsync goes
> into it's listing mode which looks like ls -l output.  You should put
> in a / for the source.
>
> Alternatively, since they're all in the same destination directory, you
> could list all the sources in the command line instead of using an
> --include-from and make the target be remotehost:/etc.
>
> - Dave Dykstra
>
> On Thu, Nov 08, 2001 at 09:47:30AM -0800, Bill Schuller wrote:
> > I am trying to sync several specific files over ssh. This works fine
when I specify the files indivdually, a la:
> >
> > rsync -av --rsync-path=/usr/local/bin/rsync /etc/passwd
remotehost:/etc/passwd
> >
> > What I want to do though, is update several files at once, a la:
> >
> > rsync -av --rsync-path=/usr/local/bin/rsync --include-from updatesys.inc
remotehost:
> >
> > See below for updatesys.inc. The file list gets generated just fine. It
doesn't update any of the files on the remote host though. Here's the
output:
> >
> > receiving file list ... done
> > drwxr-xr-x        512 2001/11/02 10:06:53 .
> > drwxr-xr-x       3584 2001/11/07 15:58:42 etc
> > -rw-r--r--        185 2001/11/01 18:02:54 etc/auto_home
> > -rw-r--r--        113 2001/11/01 18:03:03 etc/auto_master
> > -rw-r--r--        558 2001/11/01 18:01:38 etc/group
> > -rw-r--r--         54 2000/01/08 18:04:21 etc/motd
> > -r--r--r--       1239 2001/11/07 15:55:38 etc/passwd
> > -r--------        592 2001/11/07 15:58:42 etc/shadow
> > -r--r-----        884 2001/11/01 18:02:44 etc/sudoers
> > wrote 192 bytes  read 232 bytes  282.67 bytes/sec
> > total size is 3625  speedup is 8.55
> >
> > Any ideas?
> >
> >
> >
> > ######updatesys.inc############################
> >
> > /
> > /etc/
> > /etc/passwd
> > /etc/shadow
> > /etc/group
> > /etc/sudoers
> > /etc/auto_master
> > /etc/auto_home
> > /etc/motd
> > - *
>





More information about the rsync mailing list