Greetings, Working with dsync and setting up backups to a Windows file server. Problem seems to be that Windows is renaming the dovecot mail files (maildir) to Windows friendly filenames, and losing the Dovecot name. For example, 1323817925.M36368P32049.triata.globalchangemultimedia.net,S=2255,W=2318:2,S becomes 1AETPH~X. Does anyone have any ideas about how to tell Windows to not do this? Or is it not possible? -- --asai
On Tue, 13 Dec 2011 16:21:09 -0700 Asai articulated:> Working with dsync and setting up backups to a Windows file server. > Problem seems to be that Windows is renaming the dovecot mail files > (maildir) to Windows friendly filenames, and losing the Dovecot name. > For example, > 1323817925.M36368P32049.triata.globalchangemultimedia.net,S=2255,W=2318:2,S > becomes 1AETPH~X. > > Does anyone have any ideas about how to tell Windows to not do this? > Or is it not possible?I have backed up files to a Windows server before but have never experienced the problems you are describing. Could you please list the Windows Server specifics, ie. version, etc. -- Jerry ? Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________
On Tuesday, December 13, 2011 at 23:21:09 UTC, asai at globalchangemusic.org confabulated:> Greetings,> Working with dsync and setting up backups to a Windows file server. > Problem seems to be that Windows is renaming the dovecot mail files > (maildir) to Windows friendly filenames, and losing the Dovecot name. > For example, > 1323817925.M36368P32049.triata.globalchangemultimedia.net,S=2255,W=2318:2,S > becomes 1AETPH~X.> Does anyone have any ideas about how to tell Windows to not do this? Or > is it not possible?AFAIK, the colon is not valid in a windows file name. -- If at first you don't succeed, so much for skydiving.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Asai said the following on 14/12/11 00:21:> Working with dsync and setting up backups to a Windows file server. > Problem seems to be that Windows is renaming the dovecot mail files > (maildir) to Windows friendly filenames, and losing the Dovecot name. For > example, > 1323817925.M36368P32049.triata.globalchangemultimedia.net,S=2255,W=2318:2,S > >becomes 1AETPH~X.> > Does anyone have any ideas about how to tell Windows to not do this? Or is > it not possible?Got same problem rsync-ing to some low cost NAS and, of course, windows share. My solution is to tar.gz before copying to Windows. Ciao, luigi - -- / +--[Luigi Rosa]-- \ Ask ten different scientists about the environment, population control, genetics, and you'll get ten different answers, but there's one thing every scientist on the planet agrees on. Whether it happens in a hundred years or a thousand years or a million years, eventually our Sun will grow cold and go out. When that happens, it won't just take us. It'll take Marilyn Monroe, and Lao-Tzu, and Einstein, and Morobuto, and Buddy Holly, and Aristophanes... [and] all of this... all of this... was for nothing. Unless we go to the stars. --Jeffrey Sinclair, "Infection" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7oNjYACgkQ3kWu7Tfl6ZTaBACaAmu1MtZkcBEGxMM3iXfezLpr KEsAnjczFO4QVnIcHtvC2MbWGbU7AuO2 =cGog -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Asai said the following on 14/12/11 17:52:> Thanks, Luigi, I may fall back to that.Should you need it, here's the script I use to do it. In my configurations /var/spool/mail contains one dir for each domain and each of that dir contains a maildir for each domain. So the email of foobar at acme.com is in /var/spool/mail/acme.com/foobar/ The 4th line checks lost&found because /bar/spool/mail is a different file system. I create the .tgz file on local /tmp for performance reasons. TARGET=/backup for DOMAINPATH in /var/spool/mail/* do if [ "${DOMAINPATH}" != "/var/spool/mail/lost+found" ] then DOMAIN=`echo $DOMAINPATH | cut -d '/' -f 5` for USERPATH in ${DOMAINPATH}/* do USER=`echo $USERPATH | cut -d '/' -f 6` tar cvzf /tmp/$DOMAIN-$USER.tgz $USERPATH > /dev/null cp -f /tmp/$DOMAIN-$USER.tgz $TARGET/mail rm -f /tmp/$DOMAIN-$USER.tgz done fi done Ciao, luigi - -- / +--[Luigi Rosa]-- \ I don't think we have the right or the wisdom to interfere, however a planet is evolving. --James Kirk, "The Omega Glory" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7o3jYACgkQ3kWu7Tfl6ZSfpQCgvzhOJH6mnJMu8ZzvKu5y8um+ 46wAoKd0eXxBNPad9EZao7VKjZBkACer =dhk0 -----END PGP SIGNATURE-----
On 12/13/2011 04:21 PM, Asai wrote:> Greetings, > > Working with dsync and setting up backups to a Windows file server. > Problem seems to be that Windows is renaming the dovecot mail files > (maildir) to Windows friendly filenames, and losing the Dovecot name. > For example, > 1323817925.M36368P32049.triata.globalchangemultimedia.net,S=2255,W=2318:2,S > becomes 1AETPH~X. > > Does anyone have any ideas about how to tell Windows to not do this? Or > is it not possible?Don't have any answers for you, but I know that : is an invalid character in Windows filenames, so that could have something to do with it.