advertisement
Forums

The Forum is sponsored by 
 

AAPL stock: Click Here

You are currently viewing the Tips and Deals forum
PSA: rsync trailing slash
Posted by: silvarios
Date: December 29, 2015 12:46AM
Watch the trailing / on your source. Even given the mismatch on creation date on some of the backup folders (contents were all date stamped correctly, but the folders had different creation dates). Even given the 200GB of new data, this should have been a quicker transfer. No instantaneous, but but not 400GB+ and counting time frame worth of data. Absent a trailing / on source, say ~/Documents, will copy the whole documents folder to the backup location, but a trailing / on the source, say ~/Documents/, will copy the contents of the folder to the backup location. Doh!

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 source destination anyway. Okay, PSA over now.



Edited 3 time(s). Last edit at 12/29/2015 01:16AM by silvarios.
Options:  Reply • Quote
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.

Only the trailing slash for the source is important to designate the copy-mode.



Options:  Reply • Quote
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.

Fixed. Sorry for the typo.
Options:  Reply • Quote
Re: PSA: rsync trailing slash
Posted by: Onamuji
Date: December 29, 2015 01:34AM
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.)







Edited 1 time(s). Last edit at 12/29/2015 01:36AM by Onamuji.
Options:  Reply • Quote
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.)

Love, love, love, love CCC. However, this is for my NUC running Linux, so rsync it is.
Options:  Reply • Quote
Re: PSA: rsync trailing slash
Posted by: Seacrest
Date: December 29, 2015 07:42PM
IINM, CCC uses rsync under the hood, but it still does avoid making these kinds of mistakes.





I am not Ryan Seacrest, and I do not approve this message.
Options:  Reply • Quote
Re: PSA: rsync trailing slash
Posted by: FormerlySaleenl
Date: December 29, 2015 11:20PM
CCC uses our own, highly customized version of rsync, fwiw. Not the vanilla build.

-s
Options:  Reply • Quote
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.

Yeah, rysnc and some other stuff as far as I can tell. I have rysnc configured to largely do the same thing, even have the archive folder named similarly. I considered using hard links and having directories that appear more similar to a Time Machine backup, but went the usual CCC style backup route.
Options:  Reply • Quote
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

Well, there you go. smiling smiley Thanks for chiming in.

Again, I love, love, love Carbon Copy Cloner. I pay for upgrades even though it takes me years to get to the new version of OS X to even use that version of CCC. CCC was the hardest thing to let go when I left OS X as my day to day OS. It's just that good. No joke.
Options:  Reply • Quote
Re: PSA: rsync trailing slash
Posted by: gabester
Date: August 12, 2016 05:54PM
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=
Options:  Reply • Quote
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=

Glad to see you back! Yeah, I always forget too, which is why I keep some sample scripts built and saved to look at when building new ones. I'm too dense to remember such things apparently.
Options:  Reply • Quote
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 105
Record Number of Users: 186 on February 20, 2020
Record Number of Guests: 5122 on October 03, 2020