I would like to have one rsync tab in the rsyncd.conf on the destination server with the root folder on it like: [test] comment = TEST path = /export/home/foo/test read only = no uid = root gid = root and under the test folder I have several folders. How do I specify the whole path from the source side if I want to rsync a folder or files to a folder under the ../test directory. when I do this rsync -avz /export/home/foo/test/blha/file_name destination_server::test it obviously puts the file_name under /export/home/foo/test How do I put it to /export/home/foo/test/blha and avoid putting several tabs on the destination server's rsyncd.conf? any ideas please? Thanks -Daniel
On Tue, Oct 12, 2004 at 04:13:56PM -0400, Daniel Teklu wrote:> path = /export/home/foo/test[...]> How do I put it to /export/home/foo/test/blhaEither use this command: rsync -avz /export/home/foo/test/blha/file_name server::test/blha or these commands: cd /export/home/foo/test rsync -avzR blha/file_name server::test Note the use of -R (--relative) in the last example. ..wayne..