There are two computers, one is the server at 10.0.0.209, and the other one is a client.
If I execute this command in the client
rsync -avzrxlh 10.0.0.209:/var/www/library/* /var/www/library
I get success and the folders are synced.
But I want the client to sync some files from the server library not all.
So I’m trying to use the –file-from option, when I execute any of these commands in the client
rsync -avzrxlh --files-from=/home/player/library.files 10.0.0.209:/var/www/library/* /var/www/library
rsync -avzrxlh --files-from=:/home/player/library.files 10.0.0.209:/var/www/library/* /var/www/library
Where the file /home/player/library.files exists in both the server and the client machine with this content:
files/e0/e012a382bb37ca882b890d22ebb052cf.jpg
fonts/f3/f396f5b20e0d532e1b1cf4da3794878e.ttf
I get this result:
rsync error: syntax or usage error (code 1) at options.c(2433) [server=3.2.7]
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(231) [Receiver=3.2.7]
I can’t figure why… what am I doing wrong?