i am looking for a backup script to be run in ssh which can move all *.php files only to a archive
Eg. a folder has 5 sub folders with different file types, which can be mix of PDF, jpeg, gif etc etc.
but the archive generated should only include the *.php files without breaking the directory structure.
So once I upload the archive again after modification and extract, only php files of the folders within get replaced without breaking the path from which they were archived from.
I tried to grab all php files using FTP by setting up the filter but doesn't seem to work correctly.