Unzip archive to an existing directory structure

I’m looking at bring the content of one WP blog over to another as I will be using WPML to server regional content instead of multiple sites. So not strictly a WP question, more command line.

This may seem an obvious or stupid question, but if I bring over the other ‘uploads’ folder as a zip and unzip to the wp-content folder, will the contents merge into the existing folders or overwrite what is already there.

Read More

If it’s the latter, is there a switch I can append to ensure files are merged?

Thanks in advance,
Tom

Related posts

Leave a Reply

2 comments

  1. When unzip finds a file that already exists in the destination, it will ask you if you want to overwrite it. You can then type y to overwrite it, A to overwrite all files, N if you don’t want to overwrite any of them etc.

    Example:

    $ unzip archive.zip
    Archive:  archive.zip
    replace foo? [y]es, [n]o, [A]ll, [N]one, [r]ename: