When importing content from a different version of a site we need to get the attachment files from the wp-content/uploads directory. Sometimes it's not just a case of copy the latest month.
Requirement
Simple batch routine to copy missing files from one folder to another
Only copy missing files; in the source folder but not in the target
Create missing sub-directories as required
Report differences
Proposed solution
New routine oik-upload.php
Copies files from the specified folder e.g. /backups-qw/bigram.co.uk/public_html/wp-content/uploads where the folder was extracted from a full site backup of the home directory
Copies files to the target folder of the local site
When importing content from a different version of a site we need to get the attachment files from the wp-content/uploads directory. Sometimes it's not just a case of copy the latest month.
Requirement
Proposed solution
oik-upload.php
/backups-qw/bigram.co.uk/public_html/wp-content/uploads
where the folder was extracted from a full site backup of the home directory