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

    Moving Images

    Scheduled Pinned Locked Moved
    General
    5
    9
    9.5k
    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
      Duffney
      last edited by

      How would one move the existing images off one fog install to an external device and then import them onto a new fog install?

      1 Reply Last reply Reply Quote 0
      • B
        Blackout Developer
        last edited by

        If the second FOG server is online now, i would copy over the network.

        First log into the FOG server with the images. Then copy using ‘scp’ or ‘rsync’.
        scp is installed by default, rsync is not. But rsync is much better…

        SCP:
        [code]scp -r /images/* second_fog_servers_ip:/images/[/code]

        Rsync:
        [code]rsync -HavP /images/* second_fog_servers_ip:/images/[/code]

        Or, to copy them to an external drive.

        [code]mount /dev/sdb /mnt/ # change /dev/sdb to suit your external hard drive
        cp -rav /images/* /mnt/[/code]

        1 Reply Last reply Reply Quote 0
        • D
          Duffney
          last edited by

          Thank you. I’ll have to get the second server up and running and attempt this. I might also copy to an external to back it up. Do you know of any Ubuntu software that does automatic backups?

          1 Reply Last reply Reply Quote 0
          • R
            rixter
            last edited by

            Automatic to what? If you are talking external hard drive or a NAS, creating a small bash script and running it with cron is pretty easy, if you are talking tape, I don’t know as I have never used tape, and for DVD, there are several CLI programs for that, again bash and cron, replace the DVD daily.

            1 Reply Last reply Reply Quote 0
            • D
              Duffney
              last edited by

              I could not get the command line to work. Said my drive wasn’t in a block format. So I just copied the files via GUI like a noob. What needs to be done to restore these images to a new server?

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

                copy the images to the /images/ folder on the new fog server. go to the web ui, setup the image definitions pointing to the named files or folders matching what you copied.

                The FOG UI/Database keeps information about the images, like what they are named, where they are located, and what operating system they correspond to. The filesystem keeps the actual image files. You have to redefine the images in FOG (webui) to match the data files you stored in /images/


                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
                • D
                  Duffney
                  last edited by

                  Thank[quote=“chad-bisd, post: 760, member: 18”]copy the images to the /images/ folder on the new fog server. go to the web ui, setup the image definitions pointing to the named files or folders matching what you copied.

                  The FOG UI/Database keeps information about the images, like what they are named, where they are located, and what operating system they correspond to. The filesystem keeps the actual image files. You have to redefine the images in FOG (webui) to match the data files you stored in /images/[/quote]

                  Thank you for your post. This will for sure help me transfer the images. I have them backed up the an external hard drive atm. Have not received the new server yet… 😞

                  1 Reply Last reply Reply Quote 0
                  • T
                    Todd Norcross
                    last edited by

                    [quote=“chad-bisd, post: 760, member: 18”]copy the images to the /images/ folder on the new fog server. go to the web ui, setup the image definitions pointing to the named files or folders matching what you copied.

                    The FOG UI/Database keeps information about the images, like what they are named, where they are located, and what operating system they correspond to. The filesys tem keeps the actual image files. You have to redefine the images in FOG (webui) to match the data files you stored in /images/[/quote]

                    Chad-bisd, I’ve used the rsync method described by Blackout, and I used your suggestion for defining the image file. However, I still cannot use an image that was copied from one image to another. Are more files created than just the primary image file in /images? Everytime I try to use a copied image, i get the attached message.[ATTACH=full]128[/ATTACH]

                    [url=“/_imported_xf_attachments/0/128_Untitled.png?:”]Untitled.png[/url]

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

                      If you choose the single disk resizable, you get 1 file under /images/
                      If you choose the other image types, you get a folder name, and several files created undernearth representing the disks and partitions.

                      You should compare the /images/ directory structures on both servers, including permissions and ownership of files. Also, make sure the rsync is complete before you try to use the image files.


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

                      157

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project