Benni.blanko
Dabbler
- Joined
- Dec 18, 2021
- Messages
- 31
Hi there,
We are starting to do backups from Windows to Truenas 13-U5.3 with rsync.
Rsync for that reason, that the Windows machines traveling worldwide and VPN connections are sometimes slow and error prune.
At the moment we are doing directory synchronizing by simply using shares via VPN and using a Windows directory synchronizer.
And we discovered that the SMB transfer corrupted several files on our Truenas shares. The files look good (filesize okay, date/time also), but they contain huge portions of only #00 in it).
So we need something more robust and better: Rsync.
I already have a running Rsync configuration from the Windows client to Truenas. Working great.
Rsync-Cygwin version used: 3.2.7 (actual version)
Now I'm simulating a defect file on Truenas; like one of the previously broken SMB transferred files:
*run a rsync synchronisation (source: Windows PC, destination: Truenas RSync)
*files are identical on both system
*now I'm faking a defect file on Truenas by using a hex editor to mangle the file (date, time, size unchanged)
*run rsync from Windows again WITH --checksum (-c) option, but the file differences are not detected; no checksumming on both ends and finding the different file (as far as I can tell)
Soooo... I'm a little out of ideas here....
Here's the last rsync call I'm doing on the Windows box; a little parameter overkill, but that's the result of several tests and reading in the documentation.
rsync -ac -v -H -h -x --no-perms --ignore-times --stats --partial --progress --inplace --append --progress --no-whole-file --itemize-changes --delete-delay --log-file="/cygdrive/c/temp/rsync_to_nas_log.txt" /cygdrive/c/test1 rsync://username@truenas:873/rsyncmodulename/test1/
Number of files: 8 (reg: 6, dir: 2)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 0
Total file size: 13.14M bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 341
Total bytes received: 13
sent 341 bytes received 13 bytes 708.00 bytes/sec
total size is 13.14M speedup is 37,117.21
And two of these 8 files are different on Truenas, so they should be found and copied again. But they are not.
Why isn't rsync --checksum not detecting the different files and copies them again?
Anybody any idea or hint?
Thanks for your support.
We are starting to do backups from Windows to Truenas 13-U5.3 with rsync.
Rsync for that reason, that the Windows machines traveling worldwide and VPN connections are sometimes slow and error prune.
At the moment we are doing directory synchronizing by simply using shares via VPN and using a Windows directory synchronizer.
And we discovered that the SMB transfer corrupted several files on our Truenas shares. The files look good (filesize okay, date/time also), but they contain huge portions of only #00 in it).
So we need something more robust and better: Rsync.
I already have a running Rsync configuration from the Windows client to Truenas. Working great.
Rsync-Cygwin version used: 3.2.7 (actual version)
Now I'm simulating a defect file on Truenas; like one of the previously broken SMB transferred files:
*run a rsync synchronisation (source: Windows PC, destination: Truenas RSync)
*files are identical on both system
*now I'm faking a defect file on Truenas by using a hex editor to mangle the file (date, time, size unchanged)
*run rsync from Windows again WITH --checksum (-c) option, but the file differences are not detected; no checksumming on both ends and finding the different file (as far as I can tell)
Soooo... I'm a little out of ideas here....
Here's the last rsync call I'm doing on the Windows box; a little parameter overkill, but that's the result of several tests and reading in the documentation.
rsync -ac -v -H -h -x --no-perms --ignore-times --stats --partial --progress --inplace --append --progress --no-whole-file --itemize-changes --delete-delay --log-file="/cygdrive/c/temp/rsync_to_nas_log.txt" /cygdrive/c/test1 rsync://username@truenas:873/rsyncmodulename/test1/
Number of files: 8 (reg: 6, dir: 2)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 0
Total file size: 13.14M bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 341
Total bytes received: 13
sent 341 bytes received 13 bytes 708.00 bytes/sec
total size is 13.14M speedup is 37,117.21
And two of these 8 files are different on Truenas, so they should be found and copied again. But they are not.
Why isn't rsync --checksum not detecting the different files and copies them again?
Anybody any idea or hint?
Thanks for your support.