{"id":424,"date":"2014-07-26T13:33:35","date_gmt":"2014-07-26T13:33:35","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=424"},"modified":"2014-07-26T13:33:35","modified_gmt":"2014-07-26T13:33:35","slug":"rsync-from-one-server-to-another","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/07\/26\/rsync-from-one-server-to-another\/","title":{"rendered":"rsync from one server to another"},"content":{"rendered":"<p>Basically,<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n$ rsync options source destination\n\n<\/pre>\n<p>Synchronize Files From Local to Remote (Plesk to cPanel)<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n$ rsync -avz \/var\/www\/vhosts\/domain.com\/httpdocs\/ sshuser@192.168.200.99:\/home\/user\/public_html\/\n\n<\/pre>\n<p>Synchronize Files From Remote to Local )cPanel to Plesk)<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n$ rsync -avz sshuser@198.50.162.99:\/home\/username\/public_html\/ \/var\/www\/vhosts\/domain.com\/httpdocs\/\n<\/pre>\n<p>Here is a short summary of the options available in rsync. Please refer to the detailed description below for a complete description.<\/p>\n<p>        -v, &#8211;verbose               increase verbosity<br \/>\n        -q, &#8211;quiet                 suppress non-error messages<br \/>\n            &#8211;no-motd               suppress daemon-mode MOTD (see caveat)<br \/>\n        -c, &#8211;checksum              skip based on checksum, not mod-time &#038; size<br \/>\n        -a, &#8211;archive               archive mode; equals -rlptgoD (no -H,-A,-X)<br \/>\n            &#8211;no-OPTION             turn off an implied OPTION (e.g. &#8211;no-D)<br \/>\n        -r, &#8211;recursive             recurse into directories<br \/>\n        -R, &#8211;relative              use relative path names<br \/>\n            &#8211;no-implied-dirs       don\u2019t send implied dirs with &#8211;relative<br \/>\n        -b, &#8211;backup                make backups (see &#8211;suffix &#038; &#8211;backup-dir)<br \/>\n            &#8211;backup-dir=DIR        make backups into hierarchy based in DIR<br \/>\n            &#8211;suffix=SUFFIX         backup suffix (default ~ w\/o &#8211;backup-dir)<br \/>\n        -u, &#8211;update                skip files that are newer on the receiver<br \/>\n            &#8211;inplace               update destination files in-place<br \/>\n            &#8211;append                append data onto shorter files<br \/>\n            &#8211;append-verify         &#8211;append w\/old data in file checksum<br \/>\n        -d, &#8211;dirs                  transfer directories without recursing<br \/>\n        -l, &#8211;links                 copy symlinks as symlinks<br \/>\n        -L, &#8211;copy-links            transform symlink into referent file\/dir<br \/>\n            &#8211;copy-unsafe-links     only &#8220;unsafe&#8221; symlinks are transformed<br \/>\n            &#8211;safe-links            ignore symlinks that point outside the tree<br \/>\n        -k, &#8211;copy-dirlinks         transform symlink to dir into referent dir<br \/>\n        -K, &#8211;keep-dirlinks         treat symlinked dir on receiver as dir<br \/>\n        -H, &#8211;hard-links            preserve hard links<br \/>\n        -p, &#8211;perms                 preserve permissions<br \/>\n        -E, &#8211;executability         preserve executability<br \/>\n            &#8211;chmod=CHMOD           affect file and\/or directory permissions<br \/>\n        -A, &#8211;acls                  preserve ACLs (implies -p)<br \/>\n        -X, &#8211;xattrs                preserve extended attributes<br \/>\n        -o, &#8211;owner                 preserve owner (super-user only)<br \/>\n        -g, &#8211;group                 preserve group<br \/>\n            &#8211;devices               preserve device files (super-user only)<br \/>\n            &#8211;specials              preserve special files<br \/>\n        -D                          same as &#8211;devices &#8211;specials<br \/>\n        -t, &#8211;times                 preserve modification times<br \/>\n        -O, &#8211;omit-dir-times        omit directories from &#8211;times<br \/>\n            &#8211;super                 receiver attempts super-user activities<br \/>\n            &#8211;fake-super            store\/recover privileged attrs using xattrs<br \/>\n        -S, &#8211;sparse                handle sparse files efficiently<br \/>\n        -n, &#8211;dry-run               perform a trial run with no changes made<br \/>\n        -W, &#8211;whole-file            copy files whole (w\/o delta-xfer algorithm)<br \/>\n        -x, &#8211;one-file-system       don\u2019t cross filesystem boundaries<br \/>\n        -B, &#8211;block-size=SIZE       force a fixed checksum block-size<br \/>\n        -e, &#8211;rsh=COMMAND           specify the remote shell to use<br \/>\n            &#8211;rsync-path=PROGRAM    specify the rsync to run on remote machine<br \/>\n            &#8211;existing              skip creating new files on receiver<br \/>\n            &#8211;ignore-existing       skip updating files that exist on receiver<br \/>\n            &#8211;remove-source-files   sender removes synchronized files (non-dir)<br \/>\n            &#8211;del                   an alias for &#8211;delete-during<br \/>\n            &#8211;delete                delete extraneous files from dest dirs<br \/>\n            &#8211;delete-before         receiver deletes before transfer (default)<br \/>\n            &#8211;delete-during         receiver deletes during xfer, not before<br \/>\n            &#8211;delete-delay          find deletions during, delete after<br \/>\n            &#8211;delete-after          receiver deletes after transfer, not before<br \/>\n            &#8211;delete-excluded       also delete excluded files from dest dirs<br \/>\n            &#8211;ignore-errors         delete even if there are I\/O errors<br \/>\n            &#8211;force                 force deletion of dirs even if not empty<br \/>\n            &#8211;max-delete=NUM        don\u2019t delete more than NUM files<br \/>\n            &#8211;max-size=SIZE         don\u2019t transfer any file larger than SIZE<br \/>\n            &#8211;min-size=SIZE         don\u2019t transfer any file smaller than SIZE<br \/>\n&#8211;partial               keep partially transferred files<br \/>\n            &#8211;partial-dir=DIR       put a partially transferred file into DIR<br \/>\n            &#8211;delay-updates         put all updated files into place at end<br \/>\n        -m, &#8211;prune-empty-dirs      prune empty directory chains from file-list<br \/>\n            &#8211;numeric-ids           don\u2019t map uid\/gid values by user\/group name<br \/>\n            &#8211;timeout=SECONDS       set I\/O timeout in seconds<br \/>\n            &#8211;contimeout=SECONDS    set daemon connection timeout in seconds<br \/>\n        -I, &#8211;ignore-times          don\u2019t skip files that match size and time<br \/>\n            &#8211;size-only             skip files that match in size<br \/>\n            &#8211;modify-window=NUM     compare mod-times with reduced accuracy<br \/>\n        -T, &#8211;temp-dir=DIR          create temporary files in directory DIR<br \/>\n        -y, &#8211;fuzzy                 find similar file for basis if no dest file<br \/>\n            &#8211;compare-dest=DIR      also compare received files relative to DIR<br \/>\n            &#8211;copy-dest=DIR         &#8230; and include copies of unchanged files<br \/>\n            &#8211;link-dest=DIR         hardlink to files in DIR when unchanged<br \/>\n        -z, &#8211;compress              compress file data during the transfer<br \/>\n            &#8211;compress-level=NUM    explicitly set compression level<br \/>\n            &#8211;skip-compress=LIST    skip compressing files with suffix in LIST<br \/>\n        -C, &#8211;cvs-exclude           auto-ignore files in the same way CVS does<br \/>\n        -f, &#8211;filter=RULE           add a file-filtering RULE<br \/>\n        -F                          same as &#8211;filter=\u2019dir-merge \/.rsync-filter\u2019<br \/>\n                                    repeated: &#8211;filter=\u2019- .rsync-filter\u2019<br \/>\n            &#8211;exclude=PATTERN       exclude files matching PATTERN<br \/>\n            &#8211;exclude-from=FILE     read exclude patterns from FILE<br \/>\n            &#8211;include=PATTERN       don\u2019t exclude files matching PATTERN<br \/>\n            &#8211;include-from=FILE     read include patterns from FILE<br \/>\n            &#8211;files-from=FILE       read list of source-file names from FILE<br \/>\n        -0, &#8211;from0                 all *from\/filter files are delimited by 0s<br \/>\n        -s, &#8211;protect-args          no space-splitting; wildcard chars only<br \/>\n            &#8211;address=ADDRESS       bind address for outgoing socket to daemon<br \/>\n            &#8211;port=PORT             specify double-colon alternate port number<br \/>\n            &#8211;sockopts=OPTIONS      specify custom TCP options<br \/>\n            &#8211;blocking-io           use blocking I\/O for the remote shell<br \/>\n            &#8211;stats                 give some file-transfer stats<br \/>\n        -8, &#8211;8-bit-output          leave high-bit chars unescaped in output<br \/>\n        -h, &#8211;human-readable        output numbers in a human-readable format<br \/>\n            &#8211;progress              show progress during transfer<br \/>\n        -P                          same as &#8211;partial &#8211;progress<br \/>\n        -i, &#8211;itemize-changes       output a change-summary for all updates<br \/>\n            &#8211;out-format=FORMAT     output updates using the specified FORMAT<br \/>\n            &#8211;log-file=FILE         log what we\u2019re doing to the specified FILE<br \/>\n            &#8211;log-file-format=FMT   log updates using the specified FMT<br \/>\n            &#8211;password-file=FILE    read daemon-access password from FILE<br \/>\n            &#8211;list-only             list the files instead of copying them<br \/>\n            &#8211;bwlimit=KBPS          limit I\/O bandwidth; KBytes per second<br \/>\n            &#8211;write-batch=FILE      write a batched update to FILE<br \/>\n            &#8211;only-write-batch=FILE like &#8211;write-batch but w\/o updating dest<br \/>\n            &#8211;read-batch=FILE       read a batched update from FILE<br \/>\n            &#8211;protocol=NUM          force an older protocol version to be used<br \/>\n            &#8211;iconv=CONVERT_SPEC    request charset conversion of filenames<br \/>\n            &#8211;checksum-seed=NUM     set block\/file checksum seed (advanced)<br \/>\n        -4, &#8211;ipv4                  prefer IPv4<br \/>\n        -6, &#8211;ipv6                  prefer IPv6<br \/>\n            &#8211;version               print version number<br \/>\n       (-h) &#8211;help                  show this help (see below for -h comment)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Basically, $ rsync options source destination Synchronize Files From Local to Remote (Plesk to cPanel) $ rsync -avz \/var\/www\/vhosts\/domain.com\/httpdocs\/ sshuser@192.168.200.99:\/home\/user\/public_html\/ Synchronize Files From Remote to Local )cPanel to Plesk) $ rsync -avz sshuser@198.50.162.99:\/home\/username\/public_html\/ \/var\/www\/vhosts\/domain.com\/httpdocs\/ Here is a short summary of the options available in rsync. Please refer to the detailed description below for a complete &#8230; <a title=\"rsync from one server to another\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/07\/26\/rsync-from-one-server-to-another\/\" aria-label=\"Read more about rsync from one server to another\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,100],"tags":[],"class_list":["post-424","post","type-post","status-publish","format-standard","hentry","category-administration","category-rsync"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=424"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/424\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}