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
99 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 21

Accepted Solution

by:
robocat earned 500 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 21

Assisted Solution

by:robocat
robocat earned 500 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
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.
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…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

739 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