View Single Post
  #7 (permalink)  
Old 04-14-2008, 08:51 PM
bonadio bonadio is offline
Loyal Member
 
Posts: 88
Default

Hi Martin

I just tested your script in my semi-production server, congratulations everything was fine:

I have 25 users with 2Gb of messages total, it took 18 min to do a full run.

One thing I notice is that "rsync" gives an error if the user never logged in and never received any message because his store directory does not exist
---------------------------------------------------------
Mon Apr 14 23:02:22 BRT 2008 : Syncing /opt/zimbra/store/0/27 to /opt/tst/zimbra_cache/user@domain.com.br/opt/zimbra/store/0
rsync: link_stat "/opt/zimbra/store/0/27" failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at main.c(977) [sender=2.6.9]
Mon Apr 14 23:02:22 BRT 2008 : Size : 8.0K
--------------------------------------------------------------

Maybe you can check if this directory exist before runnig rsync on it.

Even with this the script runs without any problem.

One idea for the next version, after the restore script
is to be able to run more then one user at time, so it could
improve the time needed to run the backup.

Let me know if you need any help.

[]s
Reply With Quote