V
V
Viktor Yanyshev2017-10-23 14:14:22
linux
Viktor Yanyshev, 2017-10-23 14:14:22

Why does RSYNC create a directory in the specified directory for synchronization?

A local server running ubunru 16.04 that FreeBSD 8.4-STABLE should sync with.

rsync -avzlhcP --exclude '.g*' --exclude '*.*~' --exclude 'app' --exclude 'connect.php' --exclude '.idea' /home/web/www/ [email protected]_name:~/deploy

When run on a remote server, creates a ~/deploy/www directory, the contents of /home/web/www/ == ~/deploy/ although it should sync the files in /home/web/www with the files in ~/deploy/ , not create a new directory in ~/deploy/ I use the -c
switch because there is a problem with dates on the remote host
drwxr-xr-x   2 web  112      512 23 ��� 13:53 video

Why does rsync behave like this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ingvar, 2017-10-26
@take

logically everything is correct, it should be /home/web/www / instead of /home/web/www
maybe something with the keys? where in the set of keys h ?
try [email protected]_name:~/deploy /

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question