Hi everybody !
I've a question about the Open Source edition backup procedure using the "Simple Shell Script Method" by Daniel W. Martin.
This is my situation:
Internet
|
|
IPCop--------dmz--------test mail server (Zimbra)
|
|
LAN---------NAS
What would I like to do?
Backing up zimbra's most important files to my NAS
Only the administrator has all the rights on the NAS
His user name and password are (for example):
Username: admin
Password: 1111
NAS ip: 192.168.1.1
Zimbra box ip: 192.168.2.2
I've slightly changed the "Simple Shell Script Method" in this way:
(The changes are red)
Code:#!/bin/sh # Zimbra Backup Script # Requires ncftp to run # This script is intended to run from the crontab as root # Free to use and free of any warranty! Daniel W. Martin, 9 Sept 2007 # Live sync before stopping Zimbra to minimize sync time with the services down # Comment out the following line if you want to try single cold-sync only rsync -avHK --delete /opt/zimbra/ /backup/zimbra # which is the same as: /opt/zimbra /backup # Including --delete option gets rid of files in the dest folder that don't exist at the src # this prevents logfile/extraneous bloat from building up overtime. # Stop Zimbra Services sudo -u zimbra /opt/zimbra/bin/zmcontrol stop sleep 20 # Sync to backup directory rsync -avHK --delete /opt/zimbra/ /backup/zimbra # Restart Zimbra Services sudo -u zimbra /opt/zimbra/bin/zmcontrol start # Create a txt file in the backup directory that'll contain the current Zimbra # server version. Handy for knowing what version of Zimbra a backup can be restored to. sudo -u zimbra zmcontrol -v > /backup/zimbra/conf/zimbra_version.txt # or examine your /opt/zimbra/.install_history # Create archive of backed-up directory for offsite transfer # cd /backup/zimbra tar -zcvf /tmp/mail.backup.tgz -C /backup/zimbra . # Transfer file to backup server ncftpput -u admin -p 1111 192.168.1.1 / 192.168.2.2/backup /tmp/mail.backup.tgz
My first attempt was (as usual in linux world) a failure...
so, these are my questions:
1- I opened a "DMZ pin Hole" on IPCop form Zimbra ip (192.168.2.2) to NAS ip (192.168.1.1). Which port should I use?
2-I simply installed ncftp with the command: "apt-get install ncftp"
Should I configure it in some way?
I'd really appreciate any help
Thank U in advance !
(fell free to insult me if i wrote too many newbie idiot stuffs)


LinkBack URL
About LinkBacks
) a failure...

