Results 1 to 6 of 6

Thread: Moving to new server - Please verify this is OK.

  1. #1
    Join Date
    Mar 2007
    Location
    Near Pittsburgh
    Posts
    146
    Rep Power
    8

    Question Moving to new server - Please verify this is OK.

    Hi all,

    I am planning to move my Zimbra install to new hardware this week. I found JHolder's blog on this subject:

    http://www.zimbra.com/blog/archives/...er_server.html

    And I get to part 4 (step 2) and something doesn't look right.

    As Root: rsync your backup to the new location: rsync -avr /mnt/migration/zimbra /opt/

    Shouldn't this read: rsync -avr /mnt/migration /opt/zimbra

    The source should be /mnt/migration and the destination should be /opt/zimbra? (the directions look like they have /opt/zimbra backwards)

    Also, shouldn't there be a space between the source & destination?

    I'm still fairly new to Linux so this might just be me...

    Thanks,
    Rob

  2. #2
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Yup there is a space in that, the font may just be tricking you
    There's spaces between all parts, as I've indicated with [] below:
    rsync[]-arguments[]src[]dest

    With rsync these mean the same thing:
    rsync -av /src/foo /dest
    rsync -av /src/foo/ /dest/foo

    A trailing slash on the source changes behavior to avoid creating an additional directory level at the destination. You can think of a trailing / on a source as meaning "copy the contents of this directory" as opposed to "copy the directory by name", but in both cases the attributes of the containing directory are transferred to the containing directory on the destination.
    In other words, for all intensive purposes, each of the above commands copies the files in the same way. Archive mode, ensures that symbolic links, devices, attributes, permissions, ownerships, etc remain intact.

    Edit/Extra info:
    You don't need -r because -a already includes -rlptgoD
    -d (small d) is close to -r but works on directories in a little different way (if you include -a or -r then -d is ignored)
    -R (big R) is used for relative paths
    I sometimes prefer to use rsync -avHK (which is hard-links & keep-dirlinks receiving side; there's also copy-dirlink from the sending side)
    Including the --delete option gets rid of files in the dest folder that don't exist at the src. Very useful if you don't clear your dest each time first, which is normal if your doing this daily because you don't want to take a lot of time to backup each time, just the changes.
    Last edited by mmorse; 12-18-2007 at 12:02 PM.

  3. #3
    Join Date
    Mar 2007
    Location
    Near Pittsburgh
    Posts
    146
    Rep Power
    8

    Default

    MMorse,

    Thanks so much. Was flashing back to my old DOS days and something didn't look right...

    Rob

  4. #4
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    If you refresh this page I've explained a few more things in an edit
    (like why -r is redundant because it's already in -a)

  5. #5
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Stern,
    I'm sorry I didn't reply to you. I've been buried. Sorry about that!!

  6. #6
    Join Date
    Mar 2007
    Location
    Near Pittsburgh
    Posts
    146
    Rep Power
    8

    Default

    JHolder - thanks!

Similar Threads

  1. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  2. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  3. Error 256 on Installation
    By RuinExplorer in forum Installation
    Replies: 5
    Last Post: 10-19-2006, 09:19 AM
  4. Replies: 2
    Last Post: 08-28-2006, 10:20 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
  •