this post was submitted on 08 Nov 2023
1 points (100.0% liked)

Data Hoarder

0 readers
3 users here now

We are digital librarians. Among us are represented the various reasons to keep data -- legal requirements, competitive requirements, uncertainty of permanence of cloud services, distaste for transmitting your data externally (e.g. government or corporate espionage), cultural and familial archivists, internet collapse preppers, and people who do it themselves so they're sure it's done right. Everyone has their reasons for curating the data they have decided to keep (either forever or For A Damn Long Time (tm) ). Along the way we have sought out like-minded individuals to exchange strategies, war stories, and cautionary tales of failures.

founded 1 year ago
MODERATORS
 

At the moment i have 2 drives plugged into the same machine running this command to sync them.

rsync -X -H -A -a -P /mnt/MyBook /mnt/offsite/MyBook/    

later this month ill be moving the /mnt/offsite/MyBook/ drive to my brothers house and want to 1) remove files no longer on the main drive from the offsite and move the new files over.

whats the best command to do this?

top 11 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago

dd is what you want to use for exact mirroring

[–] [email protected] 0 points 1 year ago (2 children)
[–] [email protected] 1 points 1 year ago

How would you do the rsync commands being posted in the comments with dd? Doesn’t dd operate on the raw data level, complicating things? Whereas rsync-ing two directories is straight forward

[–] [email protected] 1 points 1 year ago (1 children)

Now there's a command I haven't seen in years, not since college.

[–] [email protected] 1 points 1 year ago

Really? It’s used/suggested here all the time. And I’m a windows guy.

[–] [email protected] 0 points 1 year ago (1 children)
[–] [email protected] 0 points 1 year ago (1 children)

Use robocopy, comes with windows. Mirror command is what you’re looking for.

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago (1 children)

Hmm. I should try that stuff out on the integrated Linux thing windows has… never have for backups for cloning.

[–] [email protected] 1 points 1 year ago

rsync works just fine in WSL2/Ubuntu.