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

/usr/local/bin/zmbkpose: line 236: -x: command not found #65

Open hostingnuggets opened 8 years ago

hostingnuggets commented 8 years ago

When running zmbkpose from the zimbra user crontab it does not work and fails with the following error:

/usr/local/bin/zmbkpose: line 236: -x: command not found

Line 236 shows that ldapsearch is being ran but does not work as /opt/zimbra/bin is not in any PATH. I think you should document that the PATH needs to be set.

lucascbeyeler commented 8 years ago

The same happens with me. As a correction, I loaded the user zimbra's bashrc, as the @hostingnuggets said:

###### MAIN ############
# Here the code loads the config file
source /etc/zmbkpose/zmbkpose.conf
source /opt/zimbra/.bashrc