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.


  • Moderator



  • @Tom Elliott, post: 28510, member: 7271 said:

    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:

    >scp -r /images X.X.X.X:/
    >```
     
    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:
    

    touch /images/{.mntcheck,dev/.mntcheck}
    chmod 777 -R /images

    You should be complete after this.
    Sorry to keep asking question but i only need to copy like 4 images how would i just copy those 4


  • Senior Developer

    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:

    scp -r /images X.X.X.X:/
    

    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:

    touch /images/{.mntcheck,dev/.mntcheck}
    chmod 777 -R /images
    

    You should be complete after this.



  • @Tom Elliott, post: 28507, member: 7271 said:

    Also,

    What you’re describing is exactly what the Location Plugin was designed for.
    Oh nice is there a way to just manually transfer some images now?


  • Senior Developer

    Also,

    What you’re describing is exactly what the Location Plugin was designed for.


  • Developer

    image replication for storage servers already exists, though it is designed to replicate all images and is not customizable


Log in to reply
 

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.