In this example, the file data/etc/nginx/sites-available/default will be copied to /etc/nginx/sites-available/default, and if the file already exists it will be backuped and overwritten.
In the same way, all the files inside data/etc/nginx will be copied to /etc/nginx, but existing file will be ignored.
Place folders and files that you want to copy in data/
Edit filecopier-config.ini to configure which files and folders you want to copy, backup and overwrite
Command Lines :
php filecopier.php process_all [options]
This command will execute every entries in the filecopier-config.ini file
Config file options :
keep file if already exists, do not overwrite it
create a backup of the file if exists, then copy the new file
write the copy in a test/ folder
php confeditor.php process filepath [options]
This command will copy the file located in data/filepath to filepath
https://www.exoa.ca/wp-content/uploads/2015/10/blog_thumb_php.jpg284710adminhttps://www.exoa.ca/wp-content/uploads/2018/04/logo3-1.pngadmin2017-09-25 18:40:342018-04-04 01:52:58PHP Script To Copy Files Recursively With Options