[Dovecot] Saving Maildir with Samba
Brad Bateman wrote:
Since the colon is used in Maildir file names and is illegal in Samba/Windows, is there any way to substitute that character for another? I use Samba to do a nightly backup and cannot use NFS.
Why do you think that you can't have a file named ".foo.bar" on win32 systems?
Anyway, what about making an archive (tar, zip,...)?
Cheers, -jkt
-- cd /local/pub && more beer > /dev/mouth
Brad Bateman wrote:
Colons are a reserved
Um, sure, a colon is not a period, sorry.
character in the DOS world. Yes....I thought about encapsulating (gzip) but was looking for a more elegant solution.
Maildir standard uses colons as a separator so I'm afraid that archive is the only way to go. I'm not sure if gzip is the best format as it compresses data and doesn't support storing multiple files in a big one. I'd suggest tar.
Cheers, -jkt
-- cd /local/pub && more beer > /dev/mouth
On Fri, 2006-04-21 at 13:10 -0700, Brad Bateman wrote:
The problem is not the directory, but rather the file name: 1145574924.P25062Q0M483195.bigoak.quickdispense.com:2,S There is a colon between the com and the 2. Colons are a reserved character in the DOS world. Yes....I thought about encapsulating (gzip) but was looking for a more elegant solution.
Run the backup script on the machine with Dovecot, and have it change the : to some other character. Make sure to test a restore script that changes the : back. To be safe, consider what happens if the character you choose as the replacement already occurs in the filename.
I think perhaps rsync or rdiff-backup have the ability to do this automatically.
Richard
P.S. HTML e-mail is ugly. HTML e-mail without a plain text part, especially when sent to a mailing list, is unacceptable. Fix your mail client.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Brad Bateman wrote:
Hey all,
Since the colon is used in Maildir file names and is illegal in Samba/Windows, is there any way to substitute that character for another? I use Samba to do a nightly backup and cannot use NFS.
Thanks.
Brad,
It's been awhile since I've configured Samba, but I seem to remember you being able to map incompatible filename characters within the samba configuration file. you should check the documentation for details.
alan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFETD2dE2gsBSKjZHQRAh26AKDe9y1n4lNs4hRUuHoFyxxajdNacgCeNE4+ SBWzN6Mv4aXa7ufFVmOxvcc= =Vqvy -----END PGP SIGNATURE-----
participants (4)
-
Alan Premselaar
-
Brad Bateman
-
Jan Kundrát
-
Richard Laager