The command rsync -avzu uses rsync, a fast and versatile file synchronization tool. Let’s break down what each option means and an example:
rsync -avzu [email protected]:/home/site/public_html/ /usr/share/nginx/sites/site.com/
Flags:
-a(archive mode):- Preserves symbolic links, file permissions, modification times, group/owner information, and recursive directory traversal.
- Essentially, it ensures that the copied files retain their original state as much as possible.
-v(verbose):- Displays detailed output about what
rsyncis doing during the transfer. Useful for tracking the progress and files being synced.
- Displays detailed output about what
-z(compress):- Compresses the data during the transfer to minimize network bandwidth usage, speeding up the process over slow connections.
-u(update):- Ensures that only newer files are copied. If the destination has a newer or same timestamp file, it will be skipped, avoiding unnecessary overwrites.
9 responses to “Proper rsync commands for server migrations”
doxytet
doxytet
doxycycline monohydrate
doxycycline monohydrate
finasteride rxlist
finasteride rxlist
sertraline
sertraline
lamotrigine for bipolar
lamotrigine for bipolar
lasix diuretic medication
lasix diuretic medication
pepcid famotidine pregnancy
pepcid famotidine pregnancy
dapoxetine tablet usage
dapoxetine tablet usage
semaglutide nome commerciale compresse
semaglutide nome commerciale compresse