RSYNC changes file name
James B. Byrne
byrnejb at harte-lyne.ca
Tue Jan 29 19:26:44 UTC 2019
I am using rsync to backup a cyrus-imap maildir tree. Messages are
stored in the maildir with files names considing of a number followed
by a trailing dot. For example '12345,' My problem is that when
rsync copies the files from the maildir to the backup device the file
names that it creates on the target lack the tailing dot. So the
message '12345.' becomes '12345' on the target.
I have not experienced this behaviour before. The transfer command I
If I add a --delete-before option to the command then all of the
messages files without trailing dots are deleted and then recreated.
Therefore there is no gain in transfer speed since the existing files
are not recognised by rsync as being the same as it is about to create
The progress messages look like this:
55,961 100% 100.83kB/s 0:00:00 (xfr#16261,
So the source file is recognised as having a trailing dot but the
resulting target file does not have it.
Is there some switch required to handle this?
*** e-Mail is NOT a SECURE channel ***
Do NOT transmit sensitive data via e-Mail
Do NOT open attachments nor follow links sent by e-Mail
James B. Byrne mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3
More information about the freebsd-questions