Media Library – new install, relinking old Date Paths
-
Hi,
Long story short: I’ve been approached by a client who, as a result of an out of date contact email, unknowingly had his web hosting expire and as a result all his sites, accounts and crucially all his backups wiped – a lesson for all that needs no further comment!I was sent an old .sql dump, and a separate disk with all the sites images.
It’s an Woocommerce site with lots of products. The site’s back up and running, but because it’s essentially a new install and a brand new (empty) Media Library, all the image paths are broken.I need to find a way of uploading all the images again, but relinking them to their old paths. Or vice versa.
The image names are the same, but as the old Media Library was organised by month and year based folders eg: /wp-content/uploads/2013/02/imagename.jpg there are gazillions of different dates and paths and subfolders.
Obviously, re-uploading the images will create new date paths.
I could use the usual site migration tools and find/replace each date and subfolder, but there are so many I wondered if I was missing another option?Thanks in advance.
- The topic ‘Media Library – new install, relinking old Date Paths’ is closed to new replies.