Firefox 16, a treat for developers http://t.co/cnd27CzT
How to use rsync
So what is unique about rsync?
It can perform differential uploads and downloads (synchronization) of files across the network, transferring only data that has changed. The rsync remote-update protocol allows rsync to transfer just the differences between two sets of files across the network connection.
How do I install rsync?
Use any one of the following commands to install rsync.
If you are using Debian or Ubuntu Linux, type the following command
# apt-get install rsync
OR
$ sudo apt-get install rsync
If you are using Red Hat Enterprise Linux (RHEL), type the following command
# up2date rsync
If you are using CentOS/Fedora Core Linux, type the following command
# yum install rsync
Always use rsync over ssh
Since rsync does not provide any security while transferring data it is recommended that you use rsync over ssh . This allows a secure remote connection. Now let us see some examples of rsync.
rsync command common options
- –delete : delete files that don’t exist on sender (system)
- -v : Verbose (try -vv for more detailed information)
- -e “ssh options” : specify the ssh as remote shell
- -a : archive mode
- -r : recurse into directories
- -z : compress file data
Task : Copy file from a local computer to a remote server
Copy file from /www/backup.tar.gz to a remote server called unixmen.net
$ rsync -v -e ssh /www/backup.tar.gz jerry@openbsd.nixcraft.in:~Output:
Password:
sent 19099 bytes received 36 bytes 1093.43 bytes/sec
total size is 19014 speedup is 0.99
Please note that symbol ~ indicate the users home directory (/home/jerry).
Task : Copy file from a remote server to a local computer
Copy file /home/jerry/webroot.txt from a remote server unixmen.net to a local computer /tmp directory:
$ rsync -v -e ssh jerry@unixmen.net:~/webroot.txt /tmp
Password
Task: Synchronize a local directory with a remote directory
$ rsync -r -a -v -e “ssh -l jerry” –delete unximen.net:/webroot/ /local/webroot
Task: Synchronize a remote directory with a local directory
$ rsync -r -a -v -e “ssh -l jerry” –delete /local/webroot unixmen.net:/webroot
Task: Synchronize a local directory with a remote rsync server
$ rsync -r -a -v –delete rsync://rsync.unixmen.net/cvs /home/cvs
Task: Mirror a directory between my “old” and “new” web server/ftp
You can mirror a directory between my “old” (my.old.server.com) and “new” web server with the command (assuming that ssh keys are set for password less authentication)
$ rsync -zavrR –delete –links –rsh=”ssh -l vivek” my.old.server.com:/home/lighttpd /home/lighttpd
rsync for Windows server/XP
Please note if you are using Windows, try any one of the program:
Source: cyberciti
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestwritingservice.com
-
http://www.exclusivepapers.com
-
http://www.bestwritingservice.com
-
http://www.bestwritingservice.com
-
http://www.bestwritingservice.com
-
http://www.bestwritingservice.com
-
http://www.bestwritingservice.com
-
http://www.bestwritingservice.com
-
http://www.bestwritingservice.com
-
http://www.bestwritingservice.com
-
http://www.bestwritingservice.com
-
http://www.bestwritingservice.com
-
http://www.bestwritingservice.com
-
http://www.bestwritingservice.com
-
http://www.exclusivepapers.com
-
http://www.bestwritingservice.com
-
http://www.exclusivepapers.com
-
http://www.bestwritingservice.com
-
http://www.exclusivepapers.com
-
http://www.exclusivepapers.com
-
http://www.exclusivepapers.com
-
http://www.exclusivepapers.com
-
http://www.exclusivepapers.com
-
http://www.primewritings.com
-
http://www.primewritings.com
-
http://www.primeessays.com
-
http://www.primewritings.com
-
http://www.primewritings.com
-
http://www.primeessays.com
-
http://www.primewritings.com
-
http://www.primeessays.com
-
http://www.primeessays.com
-
http://www.primewritings.com
-
http://www.primewritings.com
-
http://www.4submission.com
-
http://www.4submission.com
-
http://www.4submission.com
-
http://www.4submission.com
-
http://www.4submission.com
-
http://www.4submission.com
-
http://www.4submission.com
-
http://www.4submission.com
-
http://www.topthesis.com
-
http://www.supremeessays.com
-
http://www.bestfinance-blog.com
-
http://www.topthesis.com
-
http://www.supremeessays.com
-
http://www.topthesis.com
-
http://www.bestfinance-blog.com
-
http://www.supremeessays.com
-
http://www.topthesis.com
-
http://www.topthesis.com
-
http://www.bestfinance-blog.com
-
http://www.supremeessays.com
-
http://www.topthesis.com
-
http://www.supremeessays.com
-
http://www.bestfinance-blog.com
-
http://www.topthesis.com
-
http://www.supremeessays.com
-
http://www.topthesis.com
-
http://www.bestfinance-blog.com
-
http://www.supremeessays.com
-
http://www.supremeessays.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.bestfinance-blog.com
-
http://www.qualityessay.com
-
http://www.gogetessays.com
-
http://www.qualityessay.com
-
http://www.gogetessays.com
-
http://www.qualityessay.com
-
http://www.gogetessays.com
-
http://www.gogetessays.com
-
http://www.qualityessay.com
-
http://www.gogetessays.com
-
http://www.qualityessay.com
-
http://www.gogetessays.com
-
http://www.qualityessay.com
-
http://www.gogetessays.com
-
http://www.qualityessay.com
-
http://www.gogetessays.com
Like us on Facebook
This week Top Posts 
Top Things to do After Installing Ubuntu 13.04 ‘Raring Ringtail’ : Ubuntu 13.04 Raring Ringtail final is almost out. The final release it scheduled for release on Apri...0 comment(s) |
Howto: Upgrade to Ubuntu 13.04 Raring Ringtail from 12.04, 12,10 | Desktop & Server : Updated 05-04-2013: Ubuntu 13.04 Raring Ringtail will be released Soon, If you have ubuntu 12,10, 12...0 comment(s) |
Unix/Linux File Recognition. Did You Know? : Did you know that Unix and Linux has no concept of a file extension? What is a file name extension?
...0 comment(s) |
Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...1 comment(s) |
Howto- Resolve nosound problem on Ubuntu 13.04 Raring Ringtail,12.10 and Older : Updated 05/04/2013 : One of the common issues facing Ubuntu users after installing or upgrading Ubun...0 comment(s) |
Configure conky-Lua in Ubuntu (12.10 & 13.04 Raring Ringtail), Fedora, debian and LinuxMint | Howto Conky : Updated 05-04-2013: Conky is a free, light-weight system monitor for X, that displays any informatio...0 comment(s) |
Recent Posts
- Unix/Linux File Recognition. Did You Know?
- Migrate from MySQL to MariaDB in FreeBSD
- Connect Your Android Galaxy Tablet to Ubuntu via USB
- ElementaryOS Beta 1 and 2 Comparison and Review
- Introduction to the Linux Command Line
- A Secure Password
- Linux Kernel 3.10. It’s BIG!
- Monitoring Users Activity Using psacct or acct Tools in Linux
- Run Your Own Social Network Using elgg on RHEL / CentOS and Scientific Linux
- Getting Debian 7.0 ‘Wheezy’ Up and Running
Recent Comments



















Dominik Bauer
| #
thx a lot!
Maximiliano Osorio
| #
Osom. Thank you.
Sam
| #
Thanks much. It worked like a charm.
HailsandNails
| #
Actually, what I see too much of, and what Microsoft actually (sorta) did with Windows 8 is think forward. And let’s be brutally honest. Windows 8 is actually NOT as bad as people is making it out, they’re just freakishly afraid of change (which Linux users are as well, it seems)
SK
| #
Yes i will. Keep visiting. Subscribe us to get daily updates. Thanks for the comment