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

    Full Fog Server Backups

    Scheduled Pinned Locked Moved
    Tutorials
    5
    5
    5.2k
    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.
    • P
      Pig_Trough
      last edited by

      Hello,

      I would like to backup my .32 Fog Server running on Ubuntu 11.04. I saw a few posts about using some command line stuff, but I would prefer something somewhat similar to Windows Server backup. Does a Linux backup utility exist like this? What are some of you others doing for FOG backups? I have had a few FOG servers crash over the years and have just rebuilt the server and images when this happened. Kind of a pain but I figured it was time to update the FOG version anyways.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • x23piracyX
        x23piracy
        last edited by

        Hi,

        simply create an image of the server, my storage node is not on the same machine like fog and it’s a high available machine with most redundancies so normally the storage it selfs doesn’t need any backup.

        So prefer to Backup the complete FOG OS is what i would do.

        Greetz X23

        ║▌║█║▌│║▌║▌█

        1 Reply Last reply Reply Quote 0
        • I
          ITSolutions Testers
          last edited by

          My solution is the script that is included with FOG for back up, modified quite a bit and then made a cron entry.

          I attached the script I use, it is set up to auto save to /images/databasebackup/ and then creates folders by date for multiple backups, but you can change the location easily within the script. I use the /images directory since I usually [SIZE=2]have it mounted on a different drive from the OS so this creates a [/SIZE]redundant[SIZE=2] spot. [/SIZE]

          [SIZE=2]I then schedule 2 cron jobs running the script with no images backing up and one with the images being backed up(I back up the images mostly in the case of accidently over writing and image so I can restore it to an the original, not for disaster recovery.) I backup the database, snapins, and reports every week (but is small enough I am thinking about changing that to everyday). The second cron job is the full backup that I run once a month. [/SIZE]

          [SIZE=2]This script can easily be modified to only backup the parts you want by remarking out the sections that are not needed. So it is very flexable for the different environments you maybe be dealing with.[/SIZE]

          [SIZE=2]I find this the most efficient as so you have the most current database you can and as I have been able to setup a FOG server in a couple hours not too bad. If your FOG is running on a VM you could set it up as you want take a snap shot and then if issues arise simply restore it and then restore the database and you should be good to go.[/SIZE]

          [url=“/_imported_xf_attachments/0/327_fogbackup.sh.txt?:”]fogbackup.sh.txt[/url]

          1 Reply Last reply Reply Quote 0
          • C
            chad-bisd Moderator
            last edited by

            If you want a full backup of the entire system, just google how to backup a linux server. There are packages available through the ubuntu package manager to make this easier like windows. Otherwise, you can use tar and gzip and some kind of external storage.


            If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

            1 Reply Last reply Reply Quote 0
            • A
              altitudehack
              last edited by

              [quote=“ITSolutions, post: 12543, member: 4222”]My solution is the script that is included with FOG for back up, modified quite a bit and then made a cron entry.
              [/quote]
              Thanks for sharing, ITSolutions. If I may suggest one edit: quote your strings. A space in a password breaks the script:
              [CODE]–password=“${MYSQL_PASSWORD}”[/CODE]

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

              341

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project