• We did not send an email asking for donations - please read this post.

How to transfer files using rsync and SSH?

esmond

New Member
Joined
Apr 16, 2021
Messages
3
Reaction score
1
Credits
21
I've tried using this code in install rsync in Ubuntu but it's not working.
Code:
apt-get install rsync
Is there any other way?

Thanks!
 


f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,968
Reaction score
3,613
Credits
36,220
Can you share the error or message you are getting, it's kind of hard to guess?
 
OP
E

esmond

New Member
Joined
Apr 16, 2021
Messages
3
Reaction score
1
Credits
21
The error message:
Code:
$ apt-get install rsync

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Package rsync is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'rsync' has no installation candidate
ERROR: Job failed: exit code 1
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,968
Reaction score
3,613
Credits
36,220
Try running "sudo apt-get update" and then try again.
 
Last edited:

chrislo

New Member
Joined
Apr 13, 2021
Messages
1
Reaction score
2
Credits
10
Before you start to install, you must make sure that the rsync utility is installed on both destination and source systems.

The second way to install is you can use your distribution's package manager

To install in Ubuntu and Debian you can use the code below:
code: sudo apt intall rsync

You must also have the access to the SSH on your computer.

You can refer to these few pages on how to securely transfer your files via rsync and SSH:
How to Securely Transfer Files via rsync and SSH on Linux
How to Transfer Files with Rsync over SSH
How to Securely Transfer Files via rsync
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top