Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-15-2008, 01:24 AM
Junior Member
 
Posts: 6
Default Backup from DNZ to LAN

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)
Reply With Quote
  #2 (permalink)  
Old 02-15-2008, 07:20 AM
Junior Member
 
Posts: 6
Default

I've changed the red line in the code above in this way:


Code:
ncftpput -u admin-p 1111 192.168.1.1 /public /tmp/mail.backup.tgz
My NAS IP is: 192.168.1.1
I created a "public" folder that can be reached by FTP on port 21.

In IPCop I opened a DMZ pinhole from Zimbra box IP (192.168.2.2) to NAS IP (192.168.1.1) through port 21

Unfortunately ncftp can't connect to my NAS.....

any suggestions?

Thank U in advance

Last edited by naoto; 02-15-2008 at 11:12 AM..
Reply With Quote
  #3 (permalink)  
Old 02-15-2008, 02:19 PM
Advanced Member
 
Posts: 189
Default

Looks like the script is using "rsync" if so you want to open up port 22 for SSH protocol.
__________________
Release 6.0.2_GA_1912.UBUNTU8_64 UBUNTU8_64 NETWORK edition + Mobile Option
Activesync with Moto Q9C, HTC Touch Pro, Palm Pro, & Palm Pre
Reply With Quote
  #4 (permalink)  
Old 02-18-2008, 08:10 AM
Junior Member
 
Posts: 6
Default

Probably the simplest solution is making a windows user in the green zone copy zimbra mail backup files into a windows file server in the green zone as well.


But.....how can I do that?

Is it enough to make zimbra back up file reachable by a FTP client?


Just to make it simple, how can I move some files from a DMZ to a GREEN zone?
Shoudl I work on the GREEN zone or on the ORANGE zone?


as usual...thank U in advance
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.