SOLVED Images Directory
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.
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
@imagingmaster21 Then I would do the export and import from the web gui. Its quick and pretty painless.
Yes it is actually pretty much moving those files over to a new server.
@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
What would be the steps to restore a SQL backup of FOG form A to B?
Yes that is right.
@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.
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?
@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.