Error Message installing version 8
cat: /opt/zimbra/backup.week: Is a directory
Required directory /tmp/fakebackup/ not found!
Error Message installing version 8
cat: /opt/zimbra/backup.week: Is a directory
Required directory /tmp/fakebackup/ not found!
Thanks your information.
I am new in zimbra open source edition .
I download zmbak_v.0.8.sh.gz and run full backup today. It looks great and will test diff backup in coming days.
I am also learning recover procedure. Refer to dar command line,
Is it using DAR to extract the backup location and then copy back to zimbra location??
sorry I am not good in scripting.
Thanks your help
Hello
I will try it with my 6.0.4 OSS/Debian 5.0.3 64bits but I will have a problem because a use 2 ISCSI partition witch are :
/opt/zimbra for the system
/opt/zimbra_store for the index and mail
So how can I use the script ? 2 scripts for the 2 paths ?
Thanks
Oups !
I find the solution => backup all /opt dirIt's the most simple
But I must modify the script, only these 2 lines ?
Line 649 : nice -19 $RSYNC_BIN $RSYNC_OPTS $ZM_HOME $SYNC_DIR
Line 690 : $RSYNC_BIN $RSYNC_OPTS $ZM_HOME $SYNC_DIR
Is it correct ?
Last edited by nicolas.scaut; 01-27-2010 at 06:32 AM.
Please See Below - nicolas.scaut is right about the edit. As I wrote zimbra home would be broken!
This could warrant an script update for this use case...
Hi,
I am not sure why you wana change the above lines.
All you have to do is set the correct root dir in the config section:
to say ->Code:ZM_HOME=/opt/zimbra/ # where zimbra lives
This is at line 71 of zmbak_v.0.8.sh script.Code:ZM_HOME=/opt/ # where zimbra lives
If you other stuff installed under /opt please see the dar man page for option "-P --prune" to exclude the other unwanted dirs.
Then you will have to add this to lines 750, 756, 770, 776 lines start with:
like so:Code:nice -19 $DAR_BIN
CheersCode:nice -19 $DAR_BIN -P some_dir -P other_dir -s $ARCHIVESIZE -z$COMPRESS
Heinzg
Last edited by heinzg; 02-01-2010 at 10:32 AM. Reason: wrong info given
Motions of a day at work -![]()
![]()
![]()
Hello
Sure that It will not work because the script must use a lot of command that are in the folder : ZM_HOMEbin/
I do a test with my solution and it seems to work
Hi nicolas.scaut,
Yes you are right!
Oh Dear me :-( i am sorry for the miss leading info
I will update my post.
Cheers
Heinzg
Motions of a day at work -![]()
![]()
![]()
hello all,
thank you for the script! I discovered it few days ago, because I use NE and OSS zimbras. I parsed quickly the code and played a little bit with backups.
I have some remarks:
- you could replace ps -u $ZM_USER | awk '{print $1}' | grep -v PID
by a simple pgrep -u $ZM_USER
idem for kill / pkill
- no need to check openssh-server because it is required by zimbra when you install it
- is it possible to mkdir /tmp/fakebackup if not exist
- when I installed it the first time, install was not successful because of the "exit" when you choose to not install mailx. I was not on ubuntu and I press "n" to
thank you againCode:echo "!! Only say yes if you are running Ubuntu!!" echo echo -n "install "y" or "n": "
Hey, nice script. However run into a bit of a problem:
Running CentOS 5.4 Zimbra 6.1.0
[root@testzimbra backup]# ./zmback.sh -f
============================
Fri Feb 12 09:10:55 MST 2010
Performing FULL backup
============================
Required directory /tmp/fakebackup/ not found!
Null message body; hope that's ok
[root@testzimbra backup]# vi zmback.sh
[root@testzimbra backup]# mkdir /tmp/fakebackup
[root@testzimbra backup]# vi zmback.sh
[root@testzimbra backup]# ./zmback.sh -f
============================
Fri Feb 12 09:11:37 MST 2010
Performing FULL backup
============================
Required directory /Backup/zimbra_dars/ not found!
Null message body; hope that's ok
[root@testzimbra backup]# mkdir /Backup/zimbra_dars
mkdir: cannot create directory `/Backup/zimbra_dars': No such file or directory
[root@testzimbra backup]# mkdir /backup/zimbra_dars
[root@testzimbra backup]# vi zmback.sh
[root@testzimbra backup]# mkdir /backup/burn
[root@testzimbra backup]# ./zmback.sh -f
============================
Fri Feb 12 09:12:24 MST 2010
Performing FULL backup
============================
full Backup started at: Fri Feb 12 09:12:24 MST 2010
No old backups found
Setting date & version Marker into /opt/zimbra/DATE_VERSION.txt
Doing a hotsync of /opt/zimbra/ to /tmp/fakebackup/
Disabling the Zimbra crontab...
Stopping the Zimbra server...
Host testzimbra.domain.com
Stopping stats...Done.
Stopping mta...Done.
Stopping spell...Done.
Stopping snmp...Done.
Stopping archiving...Done.
Stopping antivirus...Done.
Stopping antispam...Done.
Stopping imapproxy...Done.
Stopping memcached...Done.
Stopping mailbox...Done.
Stopping logger...Done.
Stopping ldap...Done.
Doing a fast cold sync...
Reinstating Zimbra's crontab...
Starting Zimbra...
Host testzimbra.domain.com
Starting ldap...Done.
Starting logger...Done.
Starting mailbox...Done.
Starting antispam...Done.
Starting antivirus...Done.
Starting snmp...Done.
Starting spell...Done.
Starting mta...Done.
Starting stats...Done.
Service down time was - Hr:0 Min:6 Sec:43
Running A hack... This one to check and start Stats subsystem
Hack not needed Stats seems to be running fine...
Writing a full backup: 06_ZimbraBackup_20100212_FULL
into: /backup/zimbra_dars/ with file sizes of max: 4395M
Saving Unencrtyped Archive...
nice: invalid option -- s
Try `nice --help' for more information.
Dar had a problem!
Null message body; hope that's ok
[root@testzimbra backup]#
Don't know what to do with that "nice: invalid option -- s"
Any ideas?
Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)