let it do the work for you.
- copy
file_map.php.sample
tofile_map.php
. - set where you want to copy files from and to as key => value respectively in the
file_map.php
file. - set cron
crontab -e
- add the below
0 1 * * * /path/to/track-my-changes/track.php # runs 1pm every day
- whenever new entry added to the file_map.php will be automatically picked up and saved in your desired directory.
- leave it work for you.