• 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.
    • sudburrS
      sudburr
      last edited by

      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
      • Wayne WorkmanW
        Wayne Workman
        last edited by

        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
        • Tom ElliottT
          Tom Elliott
          last edited by

          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
          • sudburrS
            sudburr
            last edited by

            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 ]

            Wayne WorkmanW 1 Reply Last reply Reply Quote 0
            • Wayne WorkmanW
              Wayne Workman @sudburr
              last edited by Wayne Workman

              @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
              • sudburrS
                sudburr
                last edited by

                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 ]

                Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                • Wayne WorkmanW
                  Wayne Workman @sudburr
                  last edited by

                  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
                  • JunkhackerJ
                    Junkhacker Developer
                    last edited by

                    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
                    • First post
                      Last post

                    157

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project