I spent a lot of time to find a solution for my problem or find what am i doing wrong. I would like to save my user home folder into another, mounted folder...so I thought, I am going to use rsync...but! I have this include file:
+ /home/
+ /home/developer/
+ /home/developer/save_only_this_folder/*.*
+ /home/developer/.gitconfig
+ /home/developer/.kube
- *
So as you can see I would like to save some folders with contents and a file (.gitignore) Command what i am using:
rsync -azhv --dry-run
--include-from=/home/developer/preparation/rsync_include.lst /home/developer/ /mnt/c/Work/WSL/save/ubuntu20.04/home
...and yes, I am using WSL.
The result: copy everything under /home/developer folder not only those what are listed in import file.
Question would be: what am I doing wrong? Can anyone help me?
Thanks!