rsync


When copying folders and entire subtrees what is the difference between cp and rsync


Upon my initial looking both cp and rsync will copy an entire directory structure.
That being said, what is the purpose for each and which is better?
cp -R $source $destination
vs
rsync -auq $source $destination
I was trying to look into and figure this out more, but they both seemed to copy an entire directory around the same speed.
Does one leverage another? When cloning someone's HD which is the best course of action and why?
I think the main purpose of rsync not to copy directory from to the same system or machine It efficiently copies and sync files to or from a remote system.
Remote system like two different machines
and if you need the difference if you use them locally see this link

Related Links

Ansible ssh port template not expanded for synchronise
How to rsync same dir on 4 servers
Sync two source directories to two different destination directories using rsync
setting up rsync on a centOS on gcloud - error #ERROR: chdir failed
Rsync files between local directories
Excluding all hidden files and directories as well as an additional file using rsync
Cannot get rsync to ignore my git folder and my todo file
Rsync - force exit upon error
Delete over rsync using ssh is not working
rsync copy only specific files from specific subfolders, without creating empty folders
Drush rsync code 23 error
How to exclude wildcard directory but include wildcard files using rdiff-backup?
Rsync takes longer time “receiving incremental file list”
rsync - why is it transferring whole file
Can I use modified date and time as suffix in rsync?
rsync - what is the equivlant of these rules?

Categories

HOME
xamarin
coq
magnific-popup
relayjs
xmpp
q
paw-app
sql-server-2016
ravendb
podio
directx
dax
imacros
google-cloud-ml
zend-framework3
iolanguage
ef-migrations
evopdf
openedx
pass-by-reference
claims-based-identity
wijmo
emgucv
greendao
procdump
sql-server-2012-express
twilio-api
calibre
stringtemplate
repo
xmlreader
wallpaper
html5-fullscreen
host
revolution-slider
sqlite2
mesos-chronos
particles.js
unoconv
pdf-reactor
arena-simulation
galleria
logfiles
menuitem
revapi
clean-architecture
idisposable
typed-lambda-calculus
gcsfuse
django-scheduler
migradoc
root-framework
setuptools
url-pattern
angular-cache
gridpane
dataview
suffix-tree
oauth2client
independentsoft
two-factor-authentication
xpath-1.0
system.management
uid
spim
cyclomatic-complexity
myo
nsight
iiviewdeckcontroller
umbraco6
nsmutabledictionary
dia
cdt
winddk
cctv
java-metro-framework
reactfx
valuechangelistener
poller
monomac
mysqltuner
excel-2003
ora-00911
browser-detection
bitsharp
doh
appender
mysql-error-1005
lang
zend-translate
nhibernate.search
exchange-server-2003
project-hosting
aquaticprime
defensive-programming
ubuntu-9.04

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App