Question about moving images to another fog server
-
I just installed a slave Fog server over at other office across town so they could push images faster then 8 hours going across our WAN link . I only need to move a hand full of my Images over there how can I do this and have the new fog server recognize the images as well.
Also what would be really awesome if there is a way that i can make the 2 fog servers sync with each other so that if a new image is created on ether one it will copy that image over to the other server. this may be a feature request tho.
-
image replication for storage servers already exists, though it is designed to replicate all images and is not customizable
-
Also,
What you’re describing is exactly what the Location Plugin was designed for.
-
[quote=“Tom Elliott, post: 28507, member: 7271”]Also,
What you’re describing is exactly what the Location Plugin was designed for.[/quote]
Oh nice is there a way to just manually transfer some images now? -
Sure,
You can use rsync or scp, though I think in your particular case, scp will probably work better.
If both “servers” are in the same network this will GREATLY increase the speed at doing this.
From the “main” fog server with the images currently on run:
[code]scp -r /images X.X.X.X:/[/code]This will copy the enter images directory on the “new” server in the same location.
Once the transfer is complete on the “New” server run:
[code]touch /images/{.mntcheck,dev/.mntcheck}
chmod 777 -R /images[/code]You should be complete after this.
-
[quote=“Tom Elliott, post: 28510, member: 7271”]Sure,
You can use rsync or scp, though I think in your particular case, scp will probably work better.
If both “servers” are in the same network this will GREATLY increase the speed at doing this.
From the “main” fog server with the images currently on run:
[code]scp -r /images X.X.X.X:/[/code]This will copy the enter images directory on the “new” server in the same location.
Once the transfer is complete on the “New” server run:
[code]touch /images/{.mntcheck,dev/.mntcheck}
chmod 777 -R /images[/code]You should be complete after this.[/quote]
Sorry to keep asking question but i only need to copy like 4 images how would i just copy those 4 -
For future readers: https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG