Date: Tue, 29 Jan 2019 09:36:47 -0500 From: "James B. Byrne" <byrnejb@harte-lyne.ca> To: freebsd-questions@freebsd.org Subject: RSYNC changes file name Message-ID: <9aaa35912b122e88e667e7516ba6a865.squirrel@webmail.harte-lyne.ca>
next in thread | raw e-mail | index | archive | help
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 used is: rsync \ --copy-links \ --no-group \ --no-perms \ --progress \ --protect-args \ --modify-window=1 \ --recursive \ --times \ --update \ --verbose \ /home/byrnejb_hll/Documents/Personal/IMAP/byrnejb_hll \ /media/KINGSTON/vhost04/byrnejb_hll/Documents/Personal/IMAP/byrnejb_hll 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 on transfer. The progress messages look like this: byrnejb_hll/INBOX^Trash/206. 55,961 100% 100.83kB/s 0:00:00 (xfr#16261, ir-chk=9826/26446) 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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9aaa35912b122e88e667e7516ba6a865.squirrel>