automatically move files to archive server

shopping1782

New Member
YetiShare User
Wurlie User
Reservo User
Sep 12, 2012
97
0
0
Hi,
as the script already has support for remote storage - is it possible to add functionality to automatically move files to an archive server as they are old (or not so much downloaded anymore)? It would help bear the server cost on the main server where the script is hosted which is usually more powerful than the ftp storage.

Or is there at this point any other (manual) way how to move the files from the primary server to a FTP storage?
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Hi,

We are looking at ways to build in a 'copy to x server' function, however it would be really slow if you had a large volume of files to move. It may appear initially as an option on each single file in the admin area.

If you want to move a large amount of files you could do it over ssh from one server to another. Then update all the relating records within the 'file' table to the new 'serverId'. As long as the directory and filename remain the same it should work.

I'll look onto adding something into the admin area though as it would be better via the interface. :)

Thanks,
Adam.
 

hubrocket1578

New Member
YetiShare User
Jan 1, 1970
4
0
0
Hey,

What about doing this in batches? Move the oldest xxx files to x server? So it would catch up to all the old files once it gets caught into a batch that runs.

While on a very popular site this wouldn't move the files instantly to x server if its xyz old but it would eventually get to that file once its due in the relevant batch.