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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

Wordpress demo site

Scheduled Pinned Locked Moved Off-topic
9 Posts 3 Posters 415 Views
    • 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.
  • mdreiraM Offline
    mdreiraM Offline
    mdreira translator
    wrote on last edited by
    #1

    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
    0
  • girishG Offline
    girishG Offline
    girish Staff
    wrote on last edited by
    #2

    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.

    robiR mdreiraM 3 Replies Last reply
    3
  • robiR Offline
    robiR Offline
    robi
    replied to girish on last edited by
    #3

    @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 sky tech

    1 Reply Last reply
    1
  • mdreiraM Offline
    mdreiraM Offline
    mdreira translator
    replied to girish on last edited by
    #4

    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
    0
  • mdreiraM Offline
    mdreiraM Offline
    mdreira translator
    replied to girish on last edited by
    #5

    @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 <>

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to mdreira on last edited by
    #6

    @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.

    robiR 1 Reply Last reply
    0
  • robiR Offline
    robiR Offline
    robi
    replied to girish on last edited by
    #7

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

    Life of sky tech

    mdreiraM 1 Reply Last reply
    0
  • mdreiraM Offline
    mdreiraM Offline
    mdreira translator
    replied to robi on last edited by mdreira
    #8

    @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.

    girishG 1 Reply Last reply
    0
  • girishG Offline
    girishG Offline
    girish Staff
    replied to mdreira on last edited by girish
    #9

    @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
    2

  • Login

  • Don't have an account? Register

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

  • Don't have an account? Register

  • Login or register to search.