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?
dd is what you want to use for exact mirroring
dd
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
Now there’s a command I haven’t seen in years, not since college.
Really? It’s used/suggested here all the time. And I’m a windows guy.
Use robocopy, comes with windows. Mirror command is what you’re looking for.
They’re using Linux…
Hmm. I should try that stuff out on the integrated Linux thing windows has… never have for backups for cloning.
rsync works just fine in WSL2/Ubuntu.
ctrl+C ctrl+V
/s