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 12-05-2007, 08:28 AM
Special Member
 
Posts: 146
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
Reply With Quote
  #2 (permalink)  
Old 12-05-2007, 08:43 AM
Moderator
 
Posts: 6,237
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..
Reply With Quote
  #3 (permalink)  
Old 12-05-2007, 08:47 AM
Special Member
 
Posts: 146
Default

MMorse,

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

Rob
Reply With Quote
  #4 (permalink)  
Old 12-05-2007, 09:04 AM
Moderator
 
Posts: 6,237
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)
Reply With Quote
  #5 (permalink)  
Old 12-05-2007, 09:39 AM
Former Zimbran
 
Posts: 5,606
Default

Stern,
I'm sorry I didn't reply to you. I've been buried. Sorry about that!!
Reply With Quote
  #6 (permalink)  
Old 12-05-2007, 10:51 AM
Special Member
 
Posts: 146
Default

JHolder - thanks!
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.