• Hey Guest, don't forget to VOTE on each RFC topic. Your voting determine Chevereto development! No votes, no development.
  • Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Tools to manage external storage.

neoark

Chevereto Member
Hello,

Do you have plans to add tools to manage external storage? Like, add load balance ability or ability to reassign images from one external storage to another? Ability Delete/reorder External Storage.

Thanks
 
No plans for that. Besides that is extremely awkward to manage large piles of files across servers using PHP, I don't see the need for this.
 
Let's say that you have an OLD storage that you want to split in two new storages: NEW and NEWER.

1. Add both NEW and NEWER via Dahboard > Settings > External storage (make sure to reflect the same URL of OLD)
2. Go to your OLD storage and copy 50% of the files to NEW and the other 50% to NEWER. At this point you have both NEW and NEWER containing OLD (files).
3. Go to your database and assign the storage_id to each image that corresponds to either NEW or NEWER
4. Get rid of OLD

It is extremely easy. You may say, what about MySQL editing?... Is easy as took a file datetime range and apply the change:
Code:
UPDATE chv_images set storage_id = <id> WHERE storage_id = <OLD ID> AND (image_date_gmt
BETWEEN 'DATETIME 1' AND 'DATETIME 2');

Key here is to use a date as delimeter, if you want to move from one storage to another you only need to update without the date clause.
 
Back
Top