{"action":"created","issue":{"url":"https://api.github.com/repos/bit-team/backintime/issues/579","repository_url":"https://api.github.com/repos/bit-team/backintime","labels_url":"https://api.github.com/repos/bit-team/backintime/issues/579/labels{/name}","comments_url":"https://api.github.com/repos/bit-team/backintime/issues/579/comments","events_url":"https://api.github.com/repos/bit-team/backintime/issues/579/events","html_url":"https://github.com/bit-team/backintime/issues/579","id":156133613,"number":579,"title":"Backing up to a server via ssh with different UIDs","user":{"login":"protist","id":646668,"avatar_url":"https://avatars.githubusercontent.com/u/646668?v=3","gravatar_id":"","url":"https://api.github.com/users/protist","html_url":"https://github.com/protist","followers_url":"https://api.github.com/users/protist/followers","following_url":"https://api.github.com/users/protist/following{/other_user}","gists_url":"https://api.github.com/users/protist/gists{/gist_id}","starred_url":"https://api.github.com/users/protist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/protist/subscriptions","organizations_url":"https://api.github.com/users/protist/orgs","repos_url":"https://api.github.com/users/protist/repos","events_url":"https://api.github.com/users/protist/events{/privacy}","received_events_url":"https://api.github.com/users/protist/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bit-team/backintime/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2016-05-22T04:02:26Z","updated_at":"2016-06-03T10:35:38Z","closed_at":"2016-06-03T10:35:38Z","body":"I've previously been backing up to a external hard drive that I plug directly into my laptop. I've been trying to move that hard drive to my server, and backup over wifi/ssh. However, on the first backup, it seems that almost all files are being recreated, and backintime is not using hard links. For example, this file has not changed.\r\n```\r\n$ ls 20160513-200501-652/backup/home/protist/Pictures/Family2015/Cake.jpg  -il\r\n99222106 -rw-r--r-- 5 pi pi 6414684 Oct 31  2015 20160513-200501-652/backup/home/protist/Pictures/Family2015/Cake.jpg\r\n$ sudo ls new_snapshot/backup/home/protist/Pictures/Family2015/Cake.jpg  -il\r\n115344235 -rw-r--r-- 1 protist protist 6414684 Oct 31  2015 new_snapshot/backup/home/protist/Pictures/Family2015/Cake.jpg\r\n```\r\nThe first, original backup has 5 hard-links, and the second, newest file is a new hard-link. Also note the change in owner and group. I suspect that the new hard-links are because of the differences in UID between laptop and server. The laptop has `protist`'s user:group, as `1000:1000`. However, the raspberry pi has `pi` as `1000:1000`, and has `protist` as `1003:1051`. It seems that backintime ignores the original backup's correct UID of `1000:1000`. Instead, backintime looks only at the *username* `protist`, and translates it to `1003:1051`, which differs from the previous  `1000:1000`. It hence writes a new file."},"comment":{"url":"https://api.github.com/repos/bit-team/backintime/issues/comments/223546821","html_url":"https://github.com/bit-team/backintime/issues/579#issuecomment-223546821","issue_url":"https://api.github.com/repos/bit-team/backintime/issues/579","id":223546821,"user":{"login":"protist","id":646668,"avatar_url":"https://avatars.githubusercontent.com/u/646668?v=3","gravatar_id":"","url":"https://api.github.com/users/protist","html_url":"https://github.com/protist","followers_url":"https://api.github.com/users/protist/followers","following_url":"https://api.github.com/users/protist/following{/other_user}","gists_url":"https://api.github.com/users/protist/gists{/gist_id}","starred_url":"https://api.github.com/users/protist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/protist/subscriptions","organizations_url":"https://api.github.com/users/protist/orgs","repos_url":"https://api.github.com/users/protist/repos","events_url":"https://api.github.com/users/protist/events{/privacy}","received_events_url":"https://api.github.com/users/protist/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T10:35:38Z","updated_at":"2016-06-03T10:35:38Z","body":"Hmmm… it looks like I'm wanting backintime to do something that's it's not really made to do. I don't really want to patch it directly, because I'll inevitably forget after an update one day.\r\n\r\nOkay, I guess I just need to face the fact that I'll need backintime to restore my backups, and there doesn't seem to be a way to do \"dumb\" restores, at least not if I backup to ssh.\r\n\r\nThank you again for all your help."}}
{"actor":{"display_login":"protist"}}