Answer the question
In order to leave comments, you need to log in
How to make RSYNC copy all files and folders?
Hello comrades! Please tell me how to set up rsync correctly.
I'm trying to copy with this command, but only files are copied. Writes skipping directory test1
sudo rsync -zvh /home/user/documents/* /tmp/backups/
And you need files and folders.
Answer the question
In order to leave comments, you need to log in
man rsync says:
Those. you need to remove the slash in the path so that subdirectories are created.
It is also written there that, for example, these commands will copy the same thing:
rsync -av /src/foo /dest
rsync -av /src/foo/ /dest/foo
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question