Repository navigation
Conversation
…or --min-age is specified The Google Drive API allows to place a clause like "modifiedTime > '2012-06-04T12:00:00'" in the query param, so the filterflags --max-age and --min-age can be applied directly at the directory listing phase rather than in a filter. This is extremely helpful when we want to do an incremental backup of a remote drive with a large number of files but the number of recently changed file is small.
|
Apologies for the delay in reviewing this. The approach looks very ingenious - well done :-) I'm a bit concerned about the muddling of the layers - however that is the way of most optimizations! I think there might be a better way of getting the info from the sync layer to the backend layer but I haven't figured it out yet. I don't think this optimization will work with |
|
@fotile96 |
|
We now have the machinery to do this patch properly. Namely we are passing the filter flags in the context. So the google drive backend could read the min age and max age directly from there. So I think it would be worth rescuing and adjusting to the new context use (calling |
|
@fotile96 |
Yes it can, but besides filter flags the patch needs source/destination file names.
Rescued. |
|
Closing in favor of #5023 |
The Google Drive API allows to place a clause like "modifiedTime > '2012-06-04T12:00:00'" in the query param, so the filterflags --max-age and --min-age can be applied directly at the directory listing phase rather than in a filter. This is extremely helpful when we want to do an incremental backup of a remote drive with a large number of files but the number of recently changed file is small.
What is the purpose of this change?
Was the change discussed in an issue or in the forum before?
Checklist