Goal: synch a large number of large files (filesize>500MB) from one NAS (WD Mycloud) to another. rysnc is available on both. Both are connected via a Gigabit switch. NAS files can be moved with Windows Explorer at 40+MB/s, however the file metadata (dates) are changed to the current date. rsync runs at ~10-12MB/s.
If the files were copied with Windows Explorer (for speed) the data's creation date would reflect today's date. Could the file date creation and other related file meta-data be restored with a specific rsync option to match the source files?
Update: I have been advised by @RomeoNinov to update this question: An attempt to use rsync was half-successful and restored the dates of files, but not the folders.
rsync -ax --size-only --progress [email protected]:/shares/Public/Drivers /shares/Public
I was advised that adding -v to the statement and this link would help explain why it was not changed. My attempt to decode was not successful.
The request is for a command line example (similar to above) that will sync the files and folder meta-data. Looking forward to clever responses and a good narrative.
rsync
specifics relating to speed are (also) being discussed at Diagnosing a rsync bottleneck.rsync
(or justcp
) like you use the Explorer.mount
both of your NAS box shares via smb or nfs on your linux box. And then tryrsync -a --size-only /mnt/shares1/... /mnt/shares2/
(local, no IP adresses or hostnames).