vonskippy wrote:
hybinet wrote:
but nowadays I just buy a cheap VPS or a backup service with lots of disk space (100GB for $14.99, etc.) preferably in the vicinity of a Linode datacenter. I store pictures and other large stuff in the other account, and mount it on my Linode using NFS over an encrypted tunnel or SSHFS.
That would make a pretty nice HOWTO for the library.
Maybe. But it would be somewhat inappropriate to endorse purchasing services from other VPS companies in a Linode Library article. Also, the reliability of this setup depends entirely on the quality of the "cheap VPS" which, since it's cheap, is unlikely to be up to par with Linode.
Anyway, here's a quick overview:
Code:
sshfs username@remote.ip.addr.ess:/remote/directory /local/mountpoint
For a personal or family gallery, a backup/storage account with BQBackup, WebbyCart, etc. is probably all you need. They give you SSH access, so you can add a no-password public key to your account and use SSHFS to mount your backup directory. SSHFS tends to perform badly, but it's OK for small sites. The backup/storage service provider might become unhappy, though, if you move a lot of data all the time.
For more intensive use, you'll probably need a real VPS on the other side. I won't list specific companies here, as they're Linode's competitors. The cost per GB tends to be higher with VPSs than with backup/storage services, so expect to pay more. Whether or not you can use NFS (which is faster than SSHFS) depends on what the VPS host allows. OpenVZ hosts aren't as flexible with kernels as Xen hosts are. Cheap VPS hosts also tend to be somewhat less reliable than backup/storage services, even at similar prices per GB. (Backup/storage services don't need to invest as much in CPU and RAM.)
Whatever service you use, latency is the most important thing to consider. Remote filesystem access generates a lot of back-and-forth traffic, and even a latency of 30-40ms can drastically kill your filesystem performance. Never go for a server more than 10ms away from your Linode. And always remember you're burning up your bandwidth every time you access a remote filesystem.
The best option, of course, would be for Linode to provide cheap extra storage that can be accessed over the private network. Since it seems Linode is not willing to take that route, the second best option would be for someone to launch a storage service in some of the same datacenters that Linode uses. Perhaps they can cut a deal with Linode so that their services can be accessed over the private network.