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

Command Line Equivalents

Scheduled Pinned Locked Moved
FOG Problems
4
8
1.6k
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.
  • S
    sudburr
    last edited by May 5, 2016, 2:04 PM

    What are the command line equivalents to the web interface options to export hosts, export images and configuration save?

    [ Standing in between extinction in the cold and explosive radiating growth ]

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by May 5, 2016, 3:42 PM

      https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_MySQL#Manually_export_.2F_import_Fog_database

      If you want to export just a table, examples of it can be found online.

      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!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      1 Reply Last reply Reply Quote 0
      • T
        Tom Elliott
        last edited by May 5, 2016, 4:49 PM

        Export for CSV format (export hosts, images, snapins, users, etc…) is purely done in php. It’s also handled by multiple files (one to prep the environment, the other to actually hand over the file once completed. This is not something that is simply “here’s what to do”. I recommend sticking with the GUI to get those files.

        For Configuration save, all it does is a fog database dump to sql file. You can use any normal mechanism for that.

        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • S
          sudburr
          last edited by May 5, 2016, 6:12 PM

          Bummer. I was hoping there might be a `manual’ option, script or what have you in the case a server goes down in such a way that re/building or accessing the web interface was impossible, and continued to fail.

          [ Standing in between extinction in the cold and explosive radiating growth ]

          W 1 Reply Last reply May 5, 2016, 7:45 PM Reply Quote 0
          • W
            Wayne Workman @sudburr
            last edited by Wayne Workman May 5, 2016, 1:46 PM May 5, 2016, 7:45 PM

            @sudburr

            mysqldump -p – –user=username dbname tableName > tableName.sql

            Source:
            https://steveswanson.wordpress.com/2009/04/21/exporting-and-importing-an-individual-mysql-table/

            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!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            1 Reply Last reply Reply Quote 0
            • S
              sudburr
              last edited by May 5, 2016, 9:05 PM

              Thank you Wayne, but I’m wasn’t looking for A solution, I was looking for THE solution to explicitly, and exactly mimic each of the three options that are available from the Web Interface, export Hosts, export Images and Configuration save, so that they can be imported via the web interface, or command line of a working system, without any massaging.

              The reason I brought it up was because I had a brand new system experience a hardware failure in such a way that the system could still boot, but apache was fubared. Attempts to correct this ran into further hdd failures. It was new so I didn’t care about losing what little information was there, but I wondered aloud if this was at all possible.

              [ Standing in between extinction in the cold and explosive radiating growth ]

              W 1 Reply Last reply May 6, 2016, 12:21 AM Reply Quote 0
              • W
                Wayne Workman @sudburr
                last edited by May 6, 2016, 12:21 AM

                I don’t see how exporting and importing a table or DB isn’t good enough. It does exactly the same thing in the end.

                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!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                1 Reply Last reply Reply Quote 1
                • J
                  Junkhacker Developer
                  last edited by May 6, 2016, 7:09 PM

                  using the method wayne posted would give you the complete database, including the hosts and image info. if you didn’t want to do a complete database restore, you could pull the data you wanted from it anyway.

                  signature:
                  Junkhacker
                  We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

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

                  154

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project