Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Restore one app's backup to another existing app?

Restore one app's backup to another existing app?

Scheduled Pinned Locked Moved Solved Support
wordpressclonebackup
5 Posts 3 Posters 129 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Beardmancer
    wrote last edited by Beardmancer
    #1

    I have two Wordpress (developer) apps running on my Cloudron, my main site and a staging site. The staging site is ready and I would like to clone it directly to the existing main site, overwriting everything at the destination. I have a backup of the destination and am not concerned about losing it all. Also, the site is fairly simple.

    It seems that I can't do this, I get an error that the destination is in use. This happens even when the destination app is stopped. Do I have to delete the destination app on the bare domain before I can clone the staging site to the bare domain?

    Maybe I'm going about this wrong. Is there a better way?

    jamesJ 1 Reply Last reply
    0
    • B Beardmancer

      I have two Wordpress (developer) apps running on my Cloudron, my main site and a staging site. The staging site is ready and I would like to clone it directly to the existing main site, overwriting everything at the destination. I have a backup of the destination and am not concerned about losing it all. Also, the site is fairly simple.

      It seems that I can't do this, I get an error that the destination is in use. This happens even when the destination app is stopped. Do I have to delete the destination app on the bare domain before I can clone the staging site to the bare domain?

      Maybe I'm going about this wrong. Is there a better way?

      jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #2

      Hello @Beardmancer

      @Beardmancer said in Restore one app's backup to another existing app?:

      Do I have to delete the destination app on the bare domain before I can clone the staging site to the bare domain?

      Yes, you first have to either move the destination to a different location e.g. from www.DOMAIN.TLD to www-old.DOMAIN.TLD (save route) or just deleted the destination.
      Then you can go to your staging WordPress app, create a fresh backup and in the backup view of the stage, you can clone from the latest backup to the main domain.

      B 1 Reply Last reply
      0
      • robiR Offline
        robiR Offline
        robi
        wrote last edited by
        #3

        Another option would be to export the WP site using a plugin, and import it into a fresh WP install w/o all the dev/staging cruft (unless you need it for some reason).

        You can search the forum for "how to move wordpress" for more information.

        Conscious tech

        1 Reply Last reply
        0
        • jamesJ james

          Hello @Beardmancer

          @Beardmancer said in Restore one app's backup to another existing app?:

          Do I have to delete the destination app on the bare domain before I can clone the staging site to the bare domain?

          Yes, you first have to either move the destination to a different location e.g. from www.DOMAIN.TLD to www-old.DOMAIN.TLD (save route) or just deleted the destination.
          Then you can go to your staging WordPress app, create a fresh backup and in the backup view of the stage, you can clone from the latest backup to the main domain.

          B Offline
          B Offline
          Beardmancer
          wrote last edited by
          #4

          @james said in Restore one app's backup to another existing app?:

          Yes, you first have to either move the destination to a different location e.g. from www.DOMAIN.TLD to www-old.DOMAIN.TLD (save route) or just deleted the destination.

          Thanks for that, I didn't consider just changing the subdomain of the main site to move it. I suspect that might leave me with Wordpress database errors, but I guess that wouldn't matter so much.

          Ultimately I cloned Main to a new subdomain, and since that clone worked without any issues, I went ahead and deleted the original and cloned staging to the bare domain. I was hoping to minimize downtime by overwriting directly to Main, but honestly the deletion and cloning was so fast it wasn't an issue.

          @robi said in Restore one app's backup to another existing app?:

          Another option would be to export the WP site using a plugin, and import it into a fresh WP install w/o all the dev/staging cruft (unless you need it for some reason).

          You can search the forum for "how to move wordpress" for more information.

          I've certainly done it that way before, but I was hoping to avoid extra steps this time and let Cloudron do it. I'm happy to not have to find and replace "staging.domain.tld" with a plugin like I've done on past migrations.

          I've used All-in-one WP Migration previously, and it was mostly fine other than the above issue with the database. It was fairly complete and I think any of my staging "cruft" would have been exported and imported. I'm curious to know what plugin you prefer? I'll put it on my list for next time.

          I did search the forum of course, but most results are about migrating to a Cloudron app from elsewhere.

          robiR 1 Reply Last reply
          2
          • B Beardmancer has marked this topic as solved
          • B Beardmancer

            @james said in Restore one app's backup to another existing app?:

            Yes, you first have to either move the destination to a different location e.g. from www.DOMAIN.TLD to www-old.DOMAIN.TLD (save route) or just deleted the destination.

            Thanks for that, I didn't consider just changing the subdomain of the main site to move it. I suspect that might leave me with Wordpress database errors, but I guess that wouldn't matter so much.

            Ultimately I cloned Main to a new subdomain, and since that clone worked without any issues, I went ahead and deleted the original and cloned staging to the bare domain. I was hoping to minimize downtime by overwriting directly to Main, but honestly the deletion and cloning was so fast it wasn't an issue.

            @robi said in Restore one app's backup to another existing app?:

            Another option would be to export the WP site using a plugin, and import it into a fresh WP install w/o all the dev/staging cruft (unless you need it for some reason).

            You can search the forum for "how to move wordpress" for more information.

            I've certainly done it that way before, but I was hoping to avoid extra steps this time and let Cloudron do it. I'm happy to not have to find and replace "staging.domain.tld" with a plugin like I've done on past migrations.

            I've used All-in-one WP Migration previously, and it was mostly fine other than the above issue with the database. It was fairly complete and I think any of my staging "cruft" would have been exported and imported. I'm curious to know what plugin you prefer? I'll put it on my list for next time.

            I did search the forum of course, but most results are about migrating to a Cloudron app from elsewhere.

            robiR Offline
            robiR Offline
            robi
            wrote last edited by
            #5

            @Beardmancer said in Restore one app's backup to another existing app?:

            I'm curious to know what plugin you prefer? I'll put it on my list for next time.

            You found it then. Only other I've used is Updraft Plus export -> import.

            Conscious tech

            1 Reply Last reply
            1
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search