You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "nokados (via GitHub)" <gi...@apache.org> on 2024/05/13 14:34:50 UTC

[I] Versioning or unique object identifiers in storage [libcloud]

nokados opened a new issue, #2010:
URL: https://github.com/apache/libcloud/issues/2010

   ## Feature Request
   
   I want to synchronize my local files with different cloud storages. So, for this I would like to have some mechanism to check if a file in the cloud differs from my file. Unfortunately, I could not find any appropriate feature in libcloud.
   
   I propose using the same hash method for all storage drivers and make it public, so anyone can check if file is the same in a local system and in any cloud.
   
    However, this approach doesn't allow to determine where the file was changed, so, alternatively, we can use modify_time from `os.stat(file).st_mtime` or, maybe, you have a better idea.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Versioning or unique object identifiers in storage [libcloud]

Posted by "nokados (via GitHub)" <gi...@apache.org>.
nokados commented on issue #2010:
URL: https://github.com/apache/libcloud/issues/2010#issuecomment-2107864211

   If you choose hash option, it seems pretty easy, because most of the providers use data_hash from StorageDriver._upload_object, except LocalDriver, which uses md5(modify_time), and, maybe, some else.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org