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)

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)
XetroximynAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
robocatConnect With a Mentor Commented:
options "-av" for initial sync
add option "--delete" to remove any files that were removed
0
 
XetroximynAuthor Commented:
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
 
robocatConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.