How to synchronize folders' content automatically on Ubuntu?
To synchronize folders' content on Ubuntu you can use Rsync. It is a tool designed specially for that purposes.
Basic usage:
rsync -a <source_dir>/ <destination_dir>
Flag -a
means that we wan to synchronize content recursively and preserve all symbolic links etc. Trailing slash at the end of the first argument means that we want to take content of source directory. If we forget about it, we will get path: <destination_dir>/<source_dir/>[content]
.
Useful resources:
- How To Use Rsync to Sync Local and Remote Directories on a VPS
- Stack Overflow: Running rsync in background
- ExplainShell.com
Newsletter
Thank you for visiting my website. I hope you enjoyed content which I prepared and learned something valuable from it. If you want to be informed about my next entries or occasionally get a message with a collection of some interesting links, please subscribe to my newsletter. I will be extremely pleased if you do this and join my community!