Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #12567
| From | William Unruh <unruh@invalid.ca> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: rsync command line - what does the period (.) do? |
| Date | 2014-11-01 04:29 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <m31nig$m36$1@dont-email.me> (permalink) |
| References | <m31mo6$d7a$1@speranza.aioe.org> |
On 2014-11-01, 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/ I think it cancels out the / just before it:-) rsync operates differently if you tell it to backup a directlry with a trailing / or without. If without, it backs up the directory and the contents. If with a / it backs up just the content. For example lets say a file called donaldduck is in /boot. With the / you will have a file called boot-backup/donaldduck without the /, you will have a file boot-backup/boot/donaldduck. I think the . will do the same as this latter case, since . is a directory and has not trailing / > > Thanks! > > Jon
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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