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
84 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
  • 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
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…
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now