?
Solved

rsync options - best to use for migrating server.  Both initial copy, and final sync (i.e. final sync should remove files that are gone now)

Posted on 2016-07-17
3
Medium Priority
?
118 Views
Last Modified: 2016-07-22
rsync options.... I am curious the best to use for migrating server.  Both initial copy, and final sync (i.e. final sync should remove files that are gone now)
0
Comment
Question by:Xetroximyn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
robocat earned 2000 total points
ID: 41716979
options "-av" for initial sync
add option "--delete" to remove any files that were removed
0
 

Author Comment

by:Xetroximyn
ID: 41718024
I had -ravAX for initial.... is that OK?  

So I run initial,
then the night of migration run again but with --delete also and it will effectively bring them fully into sync... right?
0
 
LVL 22

Assisted Solution

by:robocat
robocat earned 2000 total points
ID: 41719037
Yes, you can run it as many times you want. BTW -r is included in -a and therefore redundant.

If you have multiple file systems, you probably should do them individually and rsync one at a time (use option -x to prevent going past filesystem boundaries).

The final run should be with all applications shut down, the files should not be open for a consistent transfer.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question