A
A
Asparagales2018-11-04 08:41:18
linux
Asparagales, 2018-11-04 08:41:18

How to copy directories and files from a remote server to a local computer using Rsync?

Good afternoon.
I'm trying to copy a folder with files from a remote server to a localhost using Rsync. But nothing works.
On the local computer, I enter the following command

rsync -v [email protected]_server_name:/путь до каталога/ /путь до каталога на локальном хосте

In response I get something like this:
skipping directory.
sent 8 bytes received 30 bytes 25.33 bytes/sec
total size is 0 speedup is 0.00

I found the team online. Maybe it has the wrong syntax. Both directories - the one being copied and the one being copied to - are not in /home.
Forgot to mention. The directory being copied from the server is located on a partition with the NTFS file system. Although CentOS seems to be able to work with it. I installed ntfs-3g there. But still, could this be the reason?
Or is it a matter of closed ports on the local host?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Berkutman, 2018-11-04
@Asparagales

Set the -r switch
In general, it works via ssh, check if ssh is running systemctl status sshd, if it is not running then
systemctl enable sshd then systemctl start sshd. And is ssh installed at all?)

A
Asparagales, 2018-11-04
@Asparagales

First, put an asterisk after the slash in the path to the copied directory. The files were copied, but not all. Those that are hidden, that is, the name of which begins with a dot, could not be copied. But with the -r option, everything is copied.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question