Archiving files to another host

Events happening in the community are now at Drupal community events on www.drupal.org.
burt.lo's picture

So, i'm trying a hack, but need some input.

Rather than serve all my file attachments (all mp3s) from my primary host, I want to "archive" some to a slower machine, thus saving space for more current content on my primary host.

I just tried changing the files.filepath to a full URL value pointing to my archive host, but displaying the node shows the new path appended to my default public files path.

Any suggestions?

Comments

You can see the current

Project Management: http://www.sagetree.net
Coaching Services: http://burtlo.info

I'd use the OS facilities and

christophweber's picture

I'd use the OS facilities and cross mount directories. Export from the slow host, mount on the fast host somewhere into the sites/default/files hierarchy.

In /etc/exports of the slow server add something like: (note that IP address restricts hosts which can mount)
/opt 172.18.64.0/255.255.248.0(rw,async)
Run the command "exportfs -a" as root.

In /etc/fstab of the main server add something like:
172.16.117.19:/opt /var/www/html/sites/default/files/slowfiles nfs rw,bg,hard,nosuid,intr 0 0
Run the command "mount -a" as root and verify you can read and write files as the httpd/www/apache user account, whichever applies.

HTH

--
Christoph Weber

San Diego DUG

Group categories

Event Classifications

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: