Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #12574

Re: rsync command line - what does the period (.) do?

From Jon Danniken <jonSPAMdanniken@yaSMPAhoo.com>
Newsgroups comp.os.linux.misc
Subject Re: rsync command line - what does the period (.) do?
Date 2014-11-01 08:35 -0700
Organization Aioe.org NNTP Server
Message-ID <m32uj6$2u3$3@speranza.aioe.org> (permalink)
References <m31mo6$d7a$1@speranza.aioe.org> <m3253f$ekc$1@news1.tnib.de>

Show all headers | View raw


On 11/01/2014 01:19 AM, Marc Haber wrote:
> Jon Danniken <jonSPAMdanniken@yaSMPAhoo.com> wrote:
>> I remember once reading in the man page for rsync an explanation as to
>> the functionality of using a period at the end of a directory, but I
>> can't seem to find it.
>>
>> What is the significance of the period (after /boot/) in a command such as:
>>
>> rsync -av /boot/. /boot-backup/
> 
> |        It is also possible to limit the amount of path information that
> |        is sent as implied directories for each path you specify.   With
> |        a  modern  rsync on the sending side (beginning with 2.6.7), you
> |        can insert a dot and a slash into the source path, like this:
> |             rsync -avR /foo/./bar/baz.c remote:/tmp/
> |        That would create /tmp/bar/baz.c on the remote  machine.   (Note
> |        that  the dot must be followed by a slash, so "/foo/." would not
> |        be abbreviated.)  For older rsync versions, you  would  need  to
> |        use a chdir to limit the source path.  For example, when pushing
> |        files:
> |             (cd /foo; rsync -avR bar/baz.c remote:/tmp/)
> 
> Does this help?

Indeed it does, thanks Marc.

Jon

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

rsync command line - what does the period (.) do? Jon Danniken <jonSPAMdanniken@yaSMPAhoo.com> - 2014-10-31 21:15 -0700
  Re: rsync command line - what does the period (.) do? William Unruh <unruh@invalid.ca> - 2014-11-01 04:29 +0000
    Re: rsync command line - what does the period (.) do? Jon Danniken <jonSPAMdanniken@yaSMPAhoo.com> - 2014-11-01 08:34 -0700
  Re: rsync command line - what does the period (.) do? Marc Haber <mh+usenetspam1118@zugschl.us> - 2014-11-01 09:19 +0100
    Re: rsync command line - what does the period (.) do? Jon Danniken <jonSPAMdanniken@yaSMPAhoo.com> - 2014-11-01 08:35 -0700

csiph-web