SETTING UP RSYNC FOR FILE SYNCHRONISATION

August 8, 2016   /   by Marco  / Categories :  Technology, Websites, Windows
SETTING UP RSYNC FOR FILE SYNCHRONISATION

The first thing to do is check to see whether you have rsync installed on your VPS. Just type rsync. If it comes back with:

[root@test ~]# rsync
rsync version 3.0.6 protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, ACLs, xattrs, iconv, symtimes

rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.

Then you know rsync is installed. If it returns an invalid command then you know you need to install it. To install rsync just use the following command:

 

Generate the SSH key gen for a password-less login

Rsync SSH Keygen

Accept all default settings

Copy the ssh keys to the remote server

or paste the keys in ssh:

 

Rsync SSH Keygen authorised

Then run the rsync to synchronise the files. It’s always from source to destination so the below command needs to run from the server that you have the files you wish to copy.

If you encounter the following error message when you run RSYNC then proceed reading to see the solution:

bash: /usr/bin/rsync: No such file or directory
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(600) [sender=3.0.6]

The fix was to install rsync on the remote server. You may have read in a few articles that rsync is not required on the remote server but in my case it was needed. It was the only way to fix the problem.

DO YOU LIKE WHAT YOU'VE READ?
Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!

Our Sponsors

  • Follow us:

OTHER ARTICLES YOU MAY LIKE


EACHINE EAT08 RC CAR

EACHINE EAT08 RC CAR

The Eachine EAT08 is the latest, greatest, and cheapest toy from Eachine. It’s a miniature racing car that’s controlled by a 2.4Ghz transmitter. The feature set is pretty much what you’d expect: left and right steering, throttle, and a few buttons that let you change the car’s settings. The EAT08 has a few tricks up […]

read more
HOW KEEPING YOUR INFORMATION SECURE CAN IMPROVE YOUR BUSINESS

HOW KEEPING YOUR INFORMATION SECURE CAN IMPROVE YOUR BUSINESS

Guaranteeing the security of sensitive company data is crucial hence why you should make it a priority to invest in a data room. This the only way you can ensure the company data remains safe from every possible threat and is entirely secure. However, you might feel it’s unnecessary to invest in an information security […]

read more

Subscribe

Receive the latest news and awesome deals via email

Like our Page

site auditing tools