I would like to have a synchronized copy of one folder with all its subtree.
It should work automatically in this way: whenever I create, modify, or delete stuff from th
You can use inotifywait (with the modify,create,delete,move flags enabled) and rsync.
inotifywait
modify,create,delete,move
rsync
while inotifywait -r -e modify,create,delete,move /directory; do rsync -avz /directory /target done
If you don't have inotifywait on your system, run sudo apt-get install inotify-tools
sudo apt-get install inotify-tools