Linux has powerful tools that enables you to sync files or folders from one source directory to another destination directory.
Step 1: Install inotify tools
More information can be found on their wiki: https://github.com/rvoicilas/inotify-tools/wiki
Step 2: Install rsync
Step 3: Create a new bash script file called sync.sh
Step 4: Paste the below code in the sync.sh file
You must modify the highlighted source and destination folder locations in the above shell script file to match your setup.
Step 5: Make the shell script executable
Step 6: Run the shell script
That's it, you are done! At this point if you make any change to the source directory, it will also apply to the destination directory.