take backup from httpd server folder / httpd.conf file into github repo backup folder on every changes

Hi

I would like to take backup from remote httpd server folder / httpd.conf file into remote github repo backup folder on every changes. Please do let me know how to do it.

I tried with copy and synchronized module but its not working.

regards,
pradeep