• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Auto-backup of several exportable items from the WebUI

Scheduled Pinned Locked Moved
General
2
4
543
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.
  • D
    DBCountMan
    last edited by DBCountMan Aug 26, 2019, 11:04 AM Aug 26, 2019, 5:02 PM

    So i ran into an issue recently where i had to reformat my server, reinstall FOG, and import the following from backups that i had:
    Users, Hosts, Groups, Images, and FOG Settings. I manually backed up /images to a different workstation with plenty of space. I used the export function to create these backups. My coworker had registered a new host and captured an image after i had created those backups. So he had to re-do that work. So is there a way to automatically backup those items on schedule? Not sure if using mysql will export all of those items. If it does then i can just create a cronjob to complete that task. I will run it every weekend when no one will be capturing or deploying images.

    1 Reply Last reply Reply Quote 0
    • G
      george1421 Moderator
      last edited by Aug 26, 2019, 5:28 PM

      I would use the mysqldump command to export the entire fog database.

      You might want to review this wiki page: https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG

      Its focus is for FOG migration, but if you have a dead server then you are already there. Just make sure you have a copy of the FOG database and the images. As long as you are restoring to the same version of FOG you will have no problems getting back up and running.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      1 Reply Last reply Reply Quote 0
      • D
        DBCountMan
        last edited by Aug 26, 2019, 7:16 PM

        forgive me but i just want to clarify that the entire sql database consists of all of those exportable items found in the web ui?

        G 1 Reply Last reply Aug 26, 2019, 8:34 PM Reply Quote 0
        • G
          george1421 Moderator @DBCountMan
          last edited by george1421 Aug 26, 2019, 2:35 PM Aug 26, 2019, 8:34 PM

          @brakcounty It contains all of the exportable items and more (like deployment history, inventory, snapin groups, and other things I can’t remember without looking). The fog database is everything except the raw image data stored in /images. With the metadata (mysql database) and the raw image files in /images you can rebuild your fog server from a fresh install.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            4/4
            Last post

          159

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project