[Dovecot] incremental backups of maildir via rsync
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi folks,
I would like to do incremental backups of the users' maildir directories to a dedicated backup host (using "rsync -SHa" and rsnapshot).
Problem is: Dovecot bloats the incremental backup by changing the file names again and again.
Is there some way to tell Dovecot to keep meta information separate from the file names?
Any helpful comment would be highly appreciated.
Harri -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlADpIsACgkQUTlbRTxpHjdS+ACgkPRnzRD2jrcz09kQx9jj9j5v Y1UAniJdRa14hc53gLbxkuBPbx5V5BCh =6nvA -----END PGP SIGNATURE-----
I would like to do incremental backups of the users' maildir directories to a dedicated backup host (using "rsync -SHa" and rsnapshot).
dont use it.
use rsync -b option. It is MUCH MUCH BETTER.
i use it regularly.
Split your rsync session if you have huge amount of users or rsync would be taking enormous amount of RAM and have larger chance to fail.
Problem is: Dovecot bloats the incremental backup by changing the file names again and again.
I didn't observe that except when moving from "new" to "cur"
but --detect-renamed fixes it.
Is there some way to tell Dovecot to keep meta information separate from the file names?
it already do this.
exclude dovecot indexes from backup
PS. rsync backup is what i use regularly. Except none of my servers are purely mail server.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi Wojciech,
On 07/16/12 08:20, Wojciech Puchar wrote:
I would like to do incremental backups of the users' maildir directories to a dedicated backup host (using "rsync -SHa" and rsnapshot).
dont use it.
use rsync -b option. It is MUCH MUCH BETTER.
i use it regularly.
I will try.
Split your rsync session if you have huge amount of users or rsync would be taking enormous amount of RAM and have larger chance to fail.
Problem is: Dovecot bloats the incremental backup by changing the file names again and again.
I didn't observe that except when moving from "new" to "cur"
but --detect-renamed fixes it.
This did not work:
# rsync -SHa --detect-renamed /etc/motd /var/tmp rsync: --detect-renamed: unknown option
I am using rsync version 3.0.9, but AFAICS there is no such option on the cvs HEAD either.
Many thanx
Harri -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlAE6WYACgkQUTlbRTxpHjep6gCfQZCOD6t4O1zUkEtKW4j2sPKD OJkAniZAbVWzYhanyeA1koYtyOJU7N53 =X9Jz -----END PGP SIGNATURE-----
but --detect-renamed fixes it.
This did not work:
# rsync -SHa --detect-renamed /etc/motd /var/tmp rsync: --detect-renamed: unknown option rsync 3.0.9 FreeBSD ports with option "enable detect renamed"
it uses rsync-patches-3.0.9.tar.gz
in addition to main source. patch for renaming files detection (and many others) are there. it is available from rsync site
Am 16.07.2012 07:20, schrieb Harald Dunkel:
Hi folks,
I would like to do incremental backups of the users' maildir directories to a dedicated backup host (using "rsync -SHa" and rsnapshot).
Problem is: Dovecot bloats the incremental backup by changing the file names again and again.
Is there some way to tell Dovecot to keep meta information separate from the file names?
Any helpful comment would be highly appreciated.
Harri
dsync backup ,may the better the solution in your case
-- Best Regards MfG Robert Schetterer
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi Robert,
On 07/16/12 08:46, Robert Schetterer wrote:
dsync backup ,may the better the solution in your case
I will surely try. This looks very promising.
Many thanx
Harri -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlAE7JoACgkQUTlbRTxpHjdtzwCfWMX0KGYQTOTzPAJd3VCULGzP e/oAn0Vj0nJE3Z+Qmz1ehxz3cJZ7Zhn3 =/f/4 -----END PGP SIGNATURE-----
participants (4)
-
Gedalya
-
Harald Dunkel
-
Robert Schetterer
-
Wojciech Puchar