this post was submitted on 25 Jul 2023
14 points (88.9% liked)
Apple
17655 readers
279 users here now
Welcome
to the largest Apple community on Lemmy. This is the place where we talk about everything Apple, from iOS to the exciting upcoming Apple Vision Pro. Feel free to join the discussion!
Rules:
- No NSFW Content
- No Hate Speech or Personal Attacks
- No Ads / Spamming
Self promotion is only allowed in the pinned monthly thread
Communities of Interest:
Apple Hardware
Apple TV
Apple Watch
iPad
iPhone
Mac
Vintage Apple
Apple Software
iOS
iPadOS
macOS
tvOS
watchOS
Shortcuts
Xcode
Community banner courtesy of u/Antsomnia.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This method can also be used migrating a user account to a different machine. I needed to swap three users in an office and used
scp
to copy the home directories between devices. Then, when creating the new user accounts the OS will offer to adopt them. Else, create the accounts before copying and then rename and replace them when copying.No one had any indication that the copy was in progress, as everything was on a wired local network. I created the accounts in the morning before anyone came to the office and it all worked automagically. Just be sure to update permissions as needed.
Yes, I use a similar method but with rsync opposed to scp. rsync retains permissions so no need to chown the home directory afterwards. Also since rsync is truly a sync and not a copy if users need to use an old system a bit more when you run it again it quickly moves over only what has changed since last time the command was ran.
As I was reading your comment another bonus popped into my head. rsync would be better for resuming an interrupted transfer as opposed to starting over.
Yes, it’s great when you need to stop and resume. For data migrations between Macs I typically use…
caffeinate sudo rsync -vaEP
The flags are: