Results 1 to 4 of 4

Thread: Backup from DNZ to LAN

  1. #1
    naoto is offline Junior Member
    Join Date
    Feb 2008
    Posts
    6
    Rep Power
    7

    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)

  2. #2
    naoto is offline Junior Member
    Join Date
    Feb 2008
    Posts
    6
    Rep Power
    7

    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 12:12 PM.

  3. #3
    bradb21's Avatar
    bradb21 is offline Advanced Member
    Join Date
    Aug 2007
    Location
    Chicago Area, USA
    Posts
    189
    Rep Power
    8

    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

  4. #4
    naoto is offline Junior Member
    Join Date
    Feb 2008
    Posts
    6
    Rep Power
    7

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 658
    Last Post: 04-04-2014, 09:01 AM
  2. FYI: ZCS NE backup to fuse/sshfs mount, worked.
    By jagipson in forum Administrators
    Replies: 0
    Last Post: 09-28-2007, 06:37 AM
  3. Backup best practice
    By Eyfi in forum Administrators
    Replies: 2
    Last Post: 06-29-2007, 07:52 AM
  4. Off-site backup
    By jbareMACS in forum Administrators
    Replies: 3
    Last Post: 05-20-2007, 10:32 AM
  5. NE Backup best practises
    By Klug in forum Administrators
    Replies: 3
    Last Post: 05-29-2006, 08:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •