Wordpress demo site
-
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!
-
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.
-
@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?
I understand that I have to take the exact id of the backup and put it where it says <backup-id> without <>
-
@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.
-
@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.
-
@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