[Feature request]: backup to arbitrary storage from cache before deletion

8 views
Skip to first unread message

zag...@gmail.com

unread,
Feb 12, 2019, 4:04:20 AM2/12/19
to Shrine
Hi,

My use case is the library of video assets that is constantly syncing from GCS (whole bucket) to local clients' servers with Minio client mirror command. Thus the size of the library is critical. Before uploading to GCS store, files are processed in Sidekiq with ffmpeg, and originals are kept in cache (we don't want to blow up the library). Would be nice to have some hybrid of `backup` and `delete_promoted` plugins, so that originals would be backed up from cache to separate store and then deleted, after processing.

Janko Marohnić

unread,
Aug 14, 2019, 9:17:23 AM8/14/19
to Shrine, zag...@gmail.com
You might be able to achieve this now with the new instrumentation plugin, see the Mirroring Uploads wiki for inspiration.

Kind regards,
Janko
On 12 Feb 2019, 10:04 +0100, zag...@gmail.com, wrote:
Hi,

My use case is the library of video assets that is constantly syncing from GCS (whole bucket) to local clients' servers with Minio client mirror command. Thus the size of the library is critical. Before uploading to GCS store, files are processed in Sidekiq with ffmpeg, and originals are kept in cache (we don't want to blow up the library). Would be nice to have some hybrid of `backup` and `delete_promoted` plugins, so that originals would be backed up from cache to separate store and then deleted, after processing.

--
You received this message because you are subscribed to the Google Groups "Shrine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-shrine...@googlegroups.com.
To post to this group, send email to ruby-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ruby-shrine/2c64b882-1d47-483a-ab51-cafd31ba7116%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages