bggo / Zmbkpose

The zmbkpose tool is a shell script that does hot backup and hot restore of ZCS Opensource accounts, GPL(OPENSOURCE). It can run from any host in the net, which means that it can be set on a backup server already existent.
http://wiki.zimbra.com/wiki/HOT_Backup_and_HOT_Restore
GNU General Public License v3.0
79 stars 55 forks source link

Backups #63

Open adriaaah opened 9 years ago

adriaaah commented 9 years ago

Hi, I've tried both last commit and rewrite_proposal_v2.0.zip, and in two cases I got some files per each user, but these files are few KB. Below is an example:

$ls -lh user@example.com.* -rw-rw-r-- 1 zimbra zimbra 340 May 31 23:37 user@example.com.Junk.tgz -rw-rw-r-- 1 zimbra zimbra 341 May 31 23:37 user@example.com.Trash.tgz -rw-rw-r-- 1 zimbra zimbra 28K May 31 23:37 user@example.com.ldiff -rw-rw-r-- 1 zimbra zimbra 336 May 31 23:37 user@example.com.tgz

$zmbkpose -f [snip] 2015-06-04 10:44:30 DEBUG: user@example.com - START FULL backup ... 2015-06-04 10:44:30 DEBUG: user@example.com - Doing ldap backup ... 2015-06-04 10:44:30 DEBUG: user@example.com - ldap backup complete 2015-06-04 10:44:30 DEBUG: user@example.com - Doing mailbox backup ... 2015-06-04 10:44:30 DEBUG: user@example.com - Doing mailbox backup ... 2015-06-04 10:44:30 DEBUG: user@example.com - mailbox backup complete 2015-06-04 10:44:30 DEBUG: user@example.com - generated tar file /opt/backup/user@example.com/20150604104430:FULL.tar 2015-06-04 10:44:30 DEBUG: user@example.com - backup size is 20K 2015-06-04 10:44:30 DEBUG: user@example.com - END in 0secs, [/snip]

zimbra@mail:/opt/backup/user@example.com$ ls -l total 20 -rw-r----- 1 zimbra zimbra 20480 Jun 4 10:44 20150604104430:FULL.tar lrwxrwxrwx 1 zimbra zimbra 23 Jun 4 10:44 LAST -> 20150604104430:FULL.tar zimbra@mail:/opt/backup/user@example.com$ file 20150604104430\:FULL.tar 20150604104430:FULL.tar: POSIX tar archive (GNU) zimbra@mail:/opt/backup/user@example.com$ ls -lh 20150604104430\:FULL.tar -rw-r----- 1 zimbra zimbra 20K Jun 4 10:44 20150604104430:FULL.tar

Those files can not contain any backup, since mailboxes are pretty large.

So, how is supposed to run backups? Which zmbkpose should I run (since rewrite-proposal is newer than last commit)? In my installation, LDAP and mail servers are separated.

Thank you.