Couldn't uploads "just" check whether they are over quota and then delete the 
oldest trashed file to get under quota?

Viele Grüsse,
-Marcel Waldvogel
(kurz&bündig)

> Am 24.04.2014 um 16:00 schrieb Bjoern Schiessle <[email protected]>:
> 
> Hi,
> 
>> On 24/04/14 15:10, Emre Erenoglu wrote:
>> I'm wondering how the Deleted Apps would behave in the following scenario.
>> 
>> - I have 133 gb occupied of my 195 gb storage
>> - Out of the 133 gb, 120 gb are family pictures. 13 gb others
>> - Let's assume that I made a wrong rm -rf command on the pictures folder
>> and the content is deleted, the deletion is propagated to the owncloud
>> server with the sync client
>> 
>> Now, would the "Deleted Files",
>> - calculate free space: 195 - 13 = 182 gb
>> - 50% of available free space = 182/2 = 91 gb = cap of Deleted Files app.
>> - Start discarding older pictures until it uses 91 gb of the free space.
>> thus discarding 120 - 91 = 29 gb of pictures.
>> 
>> right?
> 
> Yes, that's correct.
> 
>> Do you think this can be enhanced, ie to give 1 hour or 1 day of grace
>> period for the user to understand his horrible mistake and revert it?
> 
> I think this would be difficult. Something like suggested by you could
> work in your scenario. But for example what would happen if you not only
> delete your picture collection by accident but also add some other
> (large) files to your sync folder. Should we than stop uploading the new
> files for an hour because the delete operation could have been a
> mistake? I don't think that this would be a good idea. The trash bin is
> a tool which should not get into your way and just use the available
> free space to add some convenience.
> 
> I always recommend to have a backup strategy. For example I create a
> backup once a day from both my data folder and the database. There can
> so much happen, not only a accidental rm -rf but also hardware failures,
> software failures, broken hard discs, etc.  The trash bin can never be a
> replacement for backups.
> 
>> To be frank, I've once done this rm -rf (don't ask how!) on my home
>> directory and about to lose everything if didn't have a separate backup
>> system.
> 
> I can really feel your frustration if something like this happens. But
> I'm  not sure if the trash bin app is the right place to catch such
> stuff without breaking other stuff (like my example above). Probably the
> best solution is to investigate into a backup system. Already a
> additional hard disk on the same system to which you can sync your data
> from time to time would be a big improvement.
> 
> cheers,
> Björn
> 
> -- 
> Björn Schießle <[email protected]>
> Software Engineer
> ownCloud Inc.
> 
> Your Data, Your Cloud, Your Way!
> 
> ownCloud GmbH, GF: Markus Rex, Holger Dyroff
> Schloßäckerstrasse 26a, 90443 Nürnberg, HRB 28050 (AG Nürnberg)
> _______________________________________________
> User mailing list
> [email protected]
> http://mailman.owncloud.org/mailman/listinfo/user
_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user

Reply via email to