I'm new with zimbra, check the
wiki for backup script and decided to check this one.
root@zimbra:/opt/zimbra# cat /opt/zimbra/DATE_VERSION.txt
04-August-2009
Release 5.0.16_GA_2921.UBUNTU8_64 UBUNTU8_64 FOSS edition
So, this script does not work for big zimbra installations:
Quote:
/etc/zmbac.sh: line 837: [: too many arguments
31_Zimbra_Backup_04-August-2009_FULL.1.dar
31_Zimbra_Backup_04-August-2009_FULL.2.dar
31_Zimbra_Backup_04-August-2009_FULL.3.dar
31_Zimbra_Backup_04-August-2009_FULL.4.dar not found!
This should not happen
Diff Backup started at: 04:11
/etc/zmbac.sh: line 996: [: too many arguments
|
I'm not good in bash scripting, but this is too obvious for me.
This is not the way you can menage more than 1 dar file
- line 836/837
- line 863/865
Please, if there is someone good i bash scripting, make it working .
Anyway, I will test it again with large enough "ARCHIVESIZE" (line 71)
to create only 1 file.
Quote:
Originally Posted by The Fold Hi,
I've put this script into use and it created a full backup as expected but then it gave this error: Code: /usr/local/bin/zmbac.sh: line 837: [: too many arguments
30_Zimbra_Backup_28-July-2008_FULL.1.dar
30_Zimbra_Backup_28-July-2008_FULL.2.dar
30_Zimbra_Backup_28-July-2008_FULL.3.dar not found!
This should not happen Although when I checked the folder /opt/backup/zimbra_dars the file it says it can't find is there  |