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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Wordpress demo site

    Off-topic
    3
    9
    399
    Loading More Posts
    • 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.
    • mdreira
      mdreira translator last edited by

      Hi all,

      Is it possible to do something similar to a Wordpress demo in Cloudron?

      We have installed a wordpress app with a specific configuration and plugins. That would be the initial state.

      We want our clients to enter that website (with a fixed username and password), so that they can test things within the backoffice.

      Our users will modify some data inside, but we want the user data to be deleted (for example every Sunday) and the web to return to its initial state. It can be a specific backup.

      Is anyone in the community already doing something similar to this or is there another easy way to do it? I don't want to make a WP multisite for this because there are plugins that may not work well in multisite.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        You can take a Cloudron app backup in the initial state. Then, every night you can run a script of sorts to do cloudron restore --backup <backup-id> every sunday. You can just set up a CI job for this I guess.

        I have been meaning to give backups a "name". I think this was requested elsewhere.

        robi mdreira 3 Replies Last reply Reply Quote 3
        • robi
          robi @girish last edited by

          @girish it would be nice if this was an App Backup UI feature checkbox, to pin the App to a specific backup every X hours/days.

          Life of Advanced Technology

          1 Reply Last reply Reply Quote 1
          • mdreira
            mdreira translator @girish last edited by

            Thank you @girish!

            Could some kind developer from the community help me to make the script that Girish says? This would also serve for other people who want to make a demo site.

            Thanks in advance.

            1 Reply Last reply Reply Quote 0
            • mdreira
              mdreira translator @girish last edited by

              @girish Please, give me a hint how to create the command for this with cloudron restore --backup <backup-id>

              What do you mean "Cl job"? In app Cron tab?

              Captura de pantalla 2022-03-17 a las 9.32.12.jpg

              I understand that I have to take the exact id of the backup and put it where it says <backup-id> without <>

              girish 1 Reply Last reply Reply Quote 0
              • girish
                girish Staff @mdreira last edited by

                @mdreira said in Wordpress demo site:

                What do you mean "Cl job"? In app Cron tab?

                Cloudron CLI is not installed in the apps, so the command won't work. Also, an app's cron is part of the backup, so the setup is circular.

                I recommend putting this cron either in another server where you setup a cronjob (or maybe just run this command manually everyday morning). TBH, this is what I do for our demo cloudron instance. I just run a cleanup script every day morning manually.

                robi 1 Reply Last reply Reply Quote 0
                • robi
                  robi @girish last edited by

                  @girish uh, that should be automated better. N8N or host cron?

                  Life of Advanced Technology

                  mdreira 1 Reply Last reply Reply Quote 0
                  • mdreira
                    mdreira translator @robi last edited by mdreira

                    @girish I have a question about this: Are the manual backups automatically deleted even if I have disabled the automatic backups of the application?

                    I will not be able to restore a backup that deletes itself. I would need to be able to tell Cloudron not to delete a certain backup automatically. ¿is it possible?.

                    It would be nice to be able to manually delete any backups I want and to be able to tell cloudron not to delete any one I want.

                    Thank you.

                    girish 1 Reply Last reply Reply Quote 0
                    • girish
                      girish Staff @mdreira last edited by girish

                      @mdreira backups (automatic or not) are always cleaned up. The feature you want is planned for 7.2 - https://forum.cloudron.io/topic/6655/what-s-coming-in-7-2 . The "Give backups a name and control how they are preserved/cleaned up." item

                      1 Reply Last reply Reply Quote 2
                      • First post
                        Last post
                      Powered by NodeBB