Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
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
?
136 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
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 process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

610 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