1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XenForo Database reset after x time

Discussion in 'XenForo Questions and Support' started by Junior, Mar 1, 2011.

  1. Junior

    Junior Well-Known Member

    I would like to set up an XenForo database that deletes all posts and users created after a specific time. It should also reset the passwords of all accounts that were meant to not be deleted.

    I hoping this is an easy task.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    As in an automated task that prunes old content on a regular basis? This is possible with an addon. If you are a programmer then you can post in the Development Questions forum for help with this. Or post an Add-on Request and some one may be able to write this for you.
  3. Ati

    Ati Active Member

    Just dump the "clean" database, and import it back every X days. That clears all posts, resets all passwords, restores everything to the "clean" state.
    Junior and ragtek like this.
  4. Junior

    Junior Well-Known Member

    Thanks for the support, I wasn't thinking to straight this morning. I appreciate you pointing me in the right direction.
  5. SchmitzIT

    SchmitzIT Well-Known Member

    That's how I recommended someone to do this. Database backups work like a charm, and are darn easy. Here's another free tip in case you have your own server. If you want a full backup of the drive you have your OS and filesystem on, ideally you have those running on RAID 1 (mirrored). I assume that you, like a good sys admin, have extra disks of the same size lying around as a safety caution for when one of these disks would fail. The next time, after a system update or upgrade, pull one of the disks out, label it as "System backup", and replace it with one of the spare ones. Tada, instant system backup.
  6. Walter

    Walter Well-Known Member

    Not recommended.
    During rebuild of the RAID you have degraded performance and the risk if the second disk has a problem you have a system that no longer works.
  7. SchmitzIT

    SchmitzIT Well-Known Member

    But then you have the one disk you yanked out that can be used to rebuilt it. I agree about the performance, though.

Share This Page