{"action":"created","issue":{"url":"https://api.github.com/repos/ncw/rclone/issues/1202","repository_url":"https://api.github.com/repos/ncw/rclone","labels_url":"https://api.github.com/repos/ncw/rclone/issues/1202/labels{/name}","comments_url":"https://api.github.com/repos/ncw/rclone/issues/1202/comments","events_url":"https://api.github.com/repos/ncw/rclone/issues/1202/events","html_url":"https://github.com/ncw/rclone/issues/1202","id":211609064,"node_id":"MDU6SXNzdWUyMTE2MDkwNjQ=","number":1202,"title":"Keep track of permissions... ","user":{"login":"doonze","id":24908763,"node_id":"MDQ6VXNlcjI0OTA4NzYz","avatar_url":"https://avatars1.githubusercontent.com/u/24908763?v=4","gravatar_id":"","url":"https://api.github.com/users/doonze","html_url":"https://github.com/doonze","followers_url":"https://api.github.com/users/doonze/followers","following_url":"https://api.github.com/users/doonze/following{/other_user}","gists_url":"https://api.github.com/users/doonze/gists{/gist_id}","starred_url":"https://api.github.com/users/doonze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doonze/subscriptions","organizations_url":"https://api.github.com/users/doonze/orgs","repos_url":"https://api.github.com/users/doonze/repos","events_url":"https://api.github.com/users/doonze/events{/privacy}","received_events_url":"https://api.github.com/users/doonze/received_events","type":"User","site_admin":false},"labels":[{"id":86399007,"node_id":"MDU6TGFiZWw4NjM5OTAwNw==","url":"https://api.github.com/repos/ncw/rclone/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ncw/rclone/milestones/13","html_url":"https://github.com/ncw/rclone/milestone/13","labels_url":"https://api.github.com/repos/ncw/rclone/milestones/13/labels","id":1575401,"node_id":"MDk6TWlsZXN0b25lMTU3NTQwMQ==","number":13,"title":"Help Wanted","description":"Enhancements which might be useful, but currently aren't planned.\r\n\r\nAny help doing these much appreciated.","creator":{"login":"ncw","id":536803,"node_id":"MDQ6VXNlcjUzNjgwMw==","avatar_url":"https://avatars2.githubusercontent.com/u/536803?v=4","gravatar_id":"","url":"https://api.github.com/users/ncw","html_url":"https://github.com/ncw","followers_url":"https://api.github.com/users/ncw/followers","following_url":"https://api.github.com/users/ncw/following{/other_user}","gists_url":"https://api.github.com/users/ncw/gists{/gist_id}","starred_url":"https://api.github.com/users/ncw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncw/subscriptions","organizations_url":"https://api.github.com/users/ncw/orgs","repos_url":"https://api.github.com/users/ncw/repos","events_url":"https://api.github.com/users/ncw/events{/privacy}","received_events_url":"https://api.github.com/users/ncw/received_events","type":"User","site_admin":false},"open_issues":183,"closed_issues":23,"state":"open","created_at":"2016-02-10T17:44:20Z","updated_at":"2018-10-04T19:53:47Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2017-03-03T06:48:50Z","updated_at":"2018-10-06T04:56:19Z","closed_at":null,"author_association":"NONE","body":"So, what about a way to save permissions for us linux users? Currently, if we backup our system information to the cloud (like acd) all permissions are lost due to the clouds not understanding permissions. If there is a cloud that keep them I don't know what it is! \r\n\r\nAnyway, since rclone can of course read the privileges, any way to store them in a hidden file? (or any file, you get the idea) then if you copy back from the remote, rclone can then rewrite the files/dir back to disk with the correct privileges? In theory seems possible, but my attempt to read your GO code Nick has shown me my GO fu is really lacking. \r\n\r\nI know that's a HUGE request, but maybe someone out there with strong GO FU would be interested?"},"comment":{"url":"https://api.github.com/repos/ncw/rclone/issues/comments/427546371","html_url":"https://github.com/ncw/rclone/issues/1202#issuecomment-427546371","issue_url":"https://api.github.com/repos/ncw/rclone/issues/1202","id":427546371,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzU0NjM3MQ==","user":{"login":"dnessl","id":43899538,"node_id":"MDQ6VXNlcjQzODk5NTM4","avatar_url":"https://avatars2.githubusercontent.com/u/43899538?v=4","gravatar_id":"","url":"https://api.github.com/users/dnessl","html_url":"https://github.com/dnessl","followers_url":"https://api.github.com/users/dnessl/followers","following_url":"https://api.github.com/users/dnessl/following{/other_user}","gists_url":"https://api.github.com/users/dnessl/gists{/gist_id}","starred_url":"https://api.github.com/users/dnessl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnessl/subscriptions","organizations_url":"https://api.github.com/users/dnessl/orgs","repos_url":"https://api.github.com/users/dnessl/repos","events_url":"https://api.github.com/users/dnessl/events{/privacy}","received_events_url":"https://api.github.com/users/dnessl/received_events","type":"User","site_admin":false},"created_at":"2018-10-06T04:56:19Z","updated_at":"2018-10-06T04:56:19Z","author_association":"NONE","body":"FYI, pcloud already supports POSIX ACLs natively somehow:  If you use their proprietary FUSE filesystem daemon, any file you copy into it (cp -p) also automatically saves the original Unix username+groupname+permissions that you can then see as a POSIX ACL for that file.  In other words, if you issue the command getfacl to a file in their FUSE filesystem, it shows the original user+group+permissions, e.g. \r\n\r\n**drn@linux4:~/pCloudDrive>** ls -l testprog\r\n*-rw-r--r--+ 1 drn users 35472 Aug 20 12:58 testprog*\r\n**drn@linux4:~/pCloudDrive>** getfacl testprog \r\n*# file: testprog*\r\n*# owner: drn*\r\n*# group: users*\r\n*user::rwx*\r\n*group::r-x*\r\n*other::r-x*\r\n\r\nThen if you copy (cp -p) that file out of their FUSE filesystem into a local storage filesystem, the original permissions are restored.   You can even use the setfacl command to modify permissions of files in pcloud!\r\n\r\nWhich means that pcloud has a way to store original user+group+permissions as metadata.  Looking at pcloud's APIs, I don't immediately see where they store it in pcloud's metadata.  (I wonder if for each file they create fake pcloud-shares for each POSIX \"user\", \"group\", and \"other\" permission-set, and then map the read-write-execute bits to equivalent booleans in the pcloud-share.)  For compatibility with pcloud's existing functionality, I suggest asking pcloud how their FUSE fs saves Unix permissions as pcloud metadata; or I suppose someone could reverse engineer it by saving an executable file via pcloud's FUSE fs and then using the API to inspect that file's associated metedata and shares.  \r\n\r\n**Request:**  Add code to rclone sync/copy/etc to automatically take advantage of this capability in pcloud (and in any other storage service that supports it).  "}}
{"actor":{"display_login":"dnessl"}}