AAPL stock: Click Here |
|
Tips and Deals ---- For Sale & Free Items ---- 'Friendly' Political Ranting |
PSA: rsync trailing slash
Posted by: silvarios
Date: December 29, 2015 12:46AM
|
Re: PSA: rsync trailing slash
Posted by: Onamuji
Date: December 29, 2015 12:52AM
|
Quote
silvarios
Let's be real, I know all that before starting, but copied an existing rsync script and tweaked a few things, but forgot to add the trailing / on the destination anyway. Okay, PSA over now.
Re: PSA: rsync trailing slash
Posted by: silvarios
Date: December 29, 2015 01:13AM
|
Quote
Onamuji
Quote
silvarios
Let's be real, I know all that before starting, but copied an existing rsync script and tweaked a few things, but forgot to add the trailing / on the destination anyway. Okay, PSA over now.
Only the trailing slash for the source is important to designate the copy-mode.
Re: PSA: rsync trailing slash
Posted by: Onamuji
Date: December 29, 2015 01:34AM
|
Re: PSA: rsync trailing slash
Posted by: silvarios
Date: December 29, 2015 02:46AM
|
Quote
Onamuji
Remembering the trivial details is why just use Carbon Copy Cloner for large copies. (That and the fact that the Finder is slow and troublesome when copying lots of small files.)
Re: PSA: rsync trailing slash
Posted by: Seacrest
Date: December 29, 2015 07:42PM
|
Re: PSA: rsync trailing slash
Posted by: FormerlySaleenl
Date: December 29, 2015 11:20PM
|
Re: PSA: rsync trailing slash
Posted by: silvarios
Date: December 29, 2015 11:30PM
|
Quote
Seacrest
IINM, CCC uses rsync under the hood, but it still does avoid making these kinds of mistakes.
Re: PSA: rsync trailing slash
Posted by: silvarios
Date: December 29, 2015 11:35PM
|
Quote
FormerlySaleenl
CCC uses our own, highly customized version of rsync, fwiw. Not the vanilla build.
-s
Re: PSA: rsync trailing slash
Posted by: gabester
Date: August 12, 2016 05:54PM
|
Re: PSA: rsync trailing slash
Posted by: silvarios
Date: August 13, 2016 02:55PM
|
Quote
gabester
CCC is great. I've wanted to respond to this thread forever, but had lost my account... :-( Now I'm back.
Frustrating thing about rsync is I can never remember whether including or excluding the trailing slash copies the subfolders into the destination or the parent folder...
g=