{"action":"created","issue":{"url":"https://api.github.com/repos/folbricht/desync/issues/22","repository_url":"https://api.github.com/repos/folbricht/desync","labels_url":"https://api.github.com/repos/folbricht/desync/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/folbricht/desync/issues/22/comments","events_url":"https://api.github.com/repos/folbricht/desync/issues/22/events","html_url":"https://github.com/folbricht/desync/issues/22","id":307053588,"number":22,"title":"Why are cacnk chunks stored differently locally and on S3? ","user":{"login":"bradley-curran","id":2720051,"avatar_url":"https://avatars2.githubusercontent.com/u/2720051?v=4","gravatar_id":"","url":"https://api.github.com/users/bradley-curran","html_url":"https://github.com/bradley-curran","followers_url":"https://api.github.com/users/bradley-curran/followers","following_url":"https://api.github.com/users/bradley-curran/following{/other_user}","gists_url":"https://api.github.com/users/bradley-curran/gists{/gist_id}","starred_url":"https://api.github.com/users/bradley-curran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradley-curran/subscriptions","organizations_url":"https://api.github.com/users/bradley-curran/orgs","repos_url":"https://api.github.com/users/bradley-curran/repos","events_url":"https://api.github.com/users/bradley-curran/events{/privacy}","received_events_url":"https://api.github.com/users/bradley-curran/received_events","type":"User","site_admin":false},"labels":[{"id":744930009,"url":"https://api.github.com/repos/folbricht/desync/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-20T21:57:04Z","updated_at":"2018-03-22T17:11:41Z","closed_at":null,"author_association":"NONE","body":"I've stored a chunked directory using the `tar` command and created a store both locally and on S3. \r\n\r\nThe local store has a folder for each hashed chunk's first four characters:\r\n\r\n```\r\n./ab58/ab58876768a83ee7fb116492a772e8bd70d1f2a1afdfbda2b7b6fe746648cbcb.cacnk\r\n./ab6e/ab6e5c7b5eaa344020e020ec06513e4414bfe2125747a258bae01420b2f03c33.cacnk\r\n./ab71/ab71b366193d088de37695d16bb0a9982090b376c67f155003f8f801e46b7dc3.cacnk\r\n./ab71/ab71f56e030f2b65e4db56a2e6319fc15c505aeda9a0f7e7fb0b4dcfdf6e9753.cacnk\r\n./ab83/ab8359f6e51788e433ec9ee19eafbfbe2ec4584ff8528f59c4a3062e648ee1d6.cacnk\r\n./ab89/ab89a246305e39a9cf3b41e4a632a6955c4ff171747a20b1de1ad2b24b55ebdb.cacnk\r\n```\r\n\r\nHowever the same tar command using S3 produces a different structure: \r\n\r\n```\r\n./ab58876768a83ee7fb116492a772e8bd70d1f2a1afdfbda2b7b6fe746648cbcb.cacnk\r\n./ab6e5c7b5eaa344020e020ec06513e4414bfe2125747a258bae01420b2f03c33.cacnk\r\n./ab71b366193d088de37695d16bb0a9982090b376c67f155003f8f801e46b7dc3.cacnk\r\n./ab71f56e030f2b65e4db56a2e6319fc15c505aeda9a0f7e7fb0b4dcfdf6e9753.cacnk\r\n./ab8359f6e51788e433ec9ee19eafbfbe2ec4584ff8528f59c4a3062e648ee1d6.cacnk\r\n./ab89a246305e39a9cf3b41e4a632a6955c4ff171747a20b1de1ad2b24b55ebdb.cacnk\r\n```\r\n\r\nWhy not add the prefix to the S3 version as well? Does casync have the same functionality? "},"comment":{"url":"https://api.github.com/repos/folbricht/desync/issues/comments/375385070","html_url":"https://github.com/folbricht/desync/issues/22#issuecomment-375385070","issue_url":"https://api.github.com/repos/folbricht/desync/issues/22","id":375385070,"user":{"login":"bradley-curran","id":2720051,"avatar_url":"https://avatars2.githubusercontent.com/u/2720051?v=4","gravatar_id":"","url":"https://api.github.com/users/bradley-curran","html_url":"https://github.com/bradley-curran","followers_url":"https://api.github.com/users/bradley-curran/followers","following_url":"https://api.github.com/users/bradley-curran/following{/other_user}","gists_url":"https://api.github.com/users/bradley-curran/gists{/gist_id}","starred_url":"https://api.github.com/users/bradley-curran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradley-curran/subscriptions","organizations_url":"https://api.github.com/users/bradley-curran/orgs","repos_url":"https://api.github.com/users/bradley-curran/repos","events_url":"https://api.github.com/users/bradley-curran/events{/privacy}","received_events_url":"https://api.github.com/users/bradley-curran/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T17:11:41Z","updated_at":"2018-03-22T17:11:41Z","author_association":"NONE","body":"This sounds good. \r\n\r\nAlternatively (or on top of) could we implement a configuration file? If there's a configuration file the defaults can stay as-is while custom configuration can be done by the end user. \r\n\r\nI'm not sure if the config file approach would break the project's aims though. "}}
{"actor":{"display_login":"bradley-curran"}}