Can I mirror my pics to a high bandwidth server? Can I mirror my pics to a high bandwidth server?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Can I mirror my pics to a high bandwidth server?

Started by JamesUK, December 19, 2007, 08:01:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JamesUK

Hello all :)

I'm looking at gallery software for my site and coppermine seems to do pretty much everything I'm looking for, but there's something I'm not sure of and was wondering if someone can point me in the right direction.

Our site's running on a powerful dedicated server in the UK, but bandwidth is expensive and we get a lot of visitors, so what we'd like to do is install the Coppermine app on our UK server, but mirror the images to a server in the US that only serves files up, there's no scripting support there.

I was looking at Menalto's Gallery program which states:
QuoteGallery lets you mirror your albums on as many remote servers as you like. This lets you run your Gallery on a machine with limited bandwidth (like over a DSL line) but still serve up your images quickly from a high bandwidth source like an ISP. Gallery will not actually mirror the files for you. You're responsible for doing it yourself. I use a program called rsync. You can use whatever you want. If the remote album is up to date, Gallery will use it. If not, Gallery will use the local one.

Is it possible to set up Coppermine like this? I'm happy to handle mirroring the files myself, but can Coppermine support a remote server and default to the local copy if the remote server isn't available or up to date?

Thanks in advance,
James :)


JamesUK


Stramm

if you go the Menalto way with rsync you can do it but need to modify CPG core code on some places (where it gets the URLs for thumbs, intermediate and fullsized images from the db) then add your new domain in front of the relative path and make it an absolute one. That should do the trick. Some PHP and CPG knowledge required. Rsync you should be able to setup as well... Looks like you need a dedicated box for it.