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

    Solved Images Directory

    FOG Problems
    3
    10
    725
    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.
    • imagingmaster21
      imagingmaster21 last edited by

      I need to pull my images directory with the images currently in it to another FOG Server. What is the best way to do this? I have a backup of the FOG Database with the images also.

      george1421 1 Reply Last reply Reply Quote 0
      • Wayne Workman
        Wayne Workman last edited by Wayne Workman

        For future readers, this article outlines how to migrate a fog server: https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG

        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
        • george1421
          george1421 Moderator @imagingmaster21 last edited by

          @imagingmaster21 Then I would do the export and import from the web gui. Its quick and pretty painless.

          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
          • imagingmaster21
            imagingmaster21 @george1421 last edited by

            @george1421
            Yes it is actually pretty much moving those files over to a new server.

            george1421 1 Reply Last reply Reply Quote 0
            • george1421
              george1421 Moderator @imagingmaster21 last edited by george1421

              @imagingmaster21 do you need your whole fog database or only the image information? If its only the image information, the quickest way is via the web gui. Go into the images on server A and export the image definitions, then log into the web gui on server B and import the image definitions. This will move over the image definitions without over writing (messing up) anything else in your server B FOG server.

              If your end goal is actually migrating to a new server, then there is a wiki page that covers the migration: https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG

              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!

              imagingmaster21 1 Reply Last reply Reply Quote 1
              • imagingmaster21
                imagingmaster21 @george1421 last edited by

                @george1421
                What would be the steps to restore a SQL backup of FOG form A to B?

                george1421 1 Reply Last reply Reply Quote 0
                • imagingmaster21
                  imagingmaster21 @george1421 last edited by

                  @george1421
                  Yes that is right.

                  1 Reply Last reply Reply Quote 0
                  • george1421
                    george1421 Moderator @imagingmaster21 last edited by

                    @imagingmaster21 Let me make sure I didn’t miss something. Your response was not clear to me.

                    Your goal is to copy all of the images from fog server A to fog server B right? If that is the case you can use NFS as it mentioned to mount the /images share on server A over to a temp mount point on server B. Then copy everything in /images from server A to /images on server B.

                    What I posted will work for that as long as you confirm that file owner ship and permissions on server B matches server A.

                    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!

                    imagingmaster21 2 Replies Last reply Reply Quote 0
                    • imagingmaster21
                      imagingmaster21 last edited by

                      @george1421

                      So I just need the images directory and the FOG database backup of the current server and do what you said to the new one as long as it is nfs?

                      george1421 1 Reply Last reply Reply Quote 0
                      • george1421
                        george1421 Moderator @imagingmaster21 last edited by

                        @imagingmaster21 There are a few ways to go about this. But I take it you want to copy/replicate files to a new server?

                        If so a quick way would be on the new / blank server use nfs to mount the images directory on the legacy server. You will have to adapt this command for your environment. This shall be done on the new blank server.
                        sudo mount -t nfs <legacy_fog_server_ip>:/images /mnt
                        if that command executes successfully then
                        sudo cp -R /mnt/* /images
                        That will copy the mounted legacy fog server /images directory over to the new fog server /images directory/

                        And then finally when the copy is done, unmount the legacy fog server.
                        sudo umount /mnt

                        If you happen to throw the backup of the FOG database files in /images on the legacy server, those files will be copied over too.

                        The last thing you need to do on the new fog server is make sure the file permissions match on the new fog server to the legacy fog server. You need to ensure file permissions and ownership is correct.

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

                        92
                        Online

                        10.4k
                        Users

                        16.4k
                        Topics

                        150.5k
                        Posts

                        Copyright © 2012-2023 FOG Project