{"action":"created","issue":{"url":"https://api.github.com/repos/borgbackup/borg/issues/466","labels_url":"https://api.github.com/repos/borgbackup/borg/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/borgbackup/borg/issues/466/comments","events_url":"https://api.github.com/repos/borgbackup/borg/issues/466/events","html_url":"https://github.com/borgbackup/borg/issues/466","id":120464044,"number":466,"title":"borg upgrade also upgrades the backup repo","user":{"login":"jdchristensen","id":3374048,"avatar_url":"https://avatars.githubusercontent.com/u/3374048?v=3","gravatar_id":"","url":"https://api.github.com/users/jdchristensen","html_url":"https://github.com/jdchristensen","followers_url":"https://api.github.com/users/jdchristensen/followers","following_url":"https://api.github.com/users/jdchristensen/following{/other_user}","gists_url":"https://api.github.com/users/jdchristensen/gists{/gist_id}","starred_url":"https://api.github.com/users/jdchristensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdchristensen/subscriptions","organizations_url":"https://api.github.com/users/jdchristensen/orgs","repos_url":"https://api.github.com/users/jdchristensen/repos","events_url":"https://api.github.com/users/jdchristensen/events{/privacy}","received_events_url":"https://api.github.com/users/jdchristensen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-04T18:59:33Z","updated_at":"2015-12-04T20:37:40Z","closed_at":null,"body":"It uses hardlinks to create a backup repo, but then updates the files in place,\r\nwhich doesn't break the hardlinks.\r\n"},"comment":{"url":"https://api.github.com/repos/borgbackup/borg/issues/comments/162075540","html_url":"https://github.com/borgbackup/borg/issues/466#issuecomment-162075540","issue_url":"https://api.github.com/repos/borgbackup/borg/issues/466","id":162075540,"user":{"login":"jdchristensen","id":3374048,"avatar_url":"https://avatars.githubusercontent.com/u/3374048?v=3","gravatar_id":"","url":"https://api.github.com/users/jdchristensen","html_url":"https://github.com/jdchristensen","followers_url":"https://api.github.com/users/jdchristensen/followers","following_url":"https://api.github.com/users/jdchristensen/following{/other_user}","gists_url":"https://api.github.com/users/jdchristensen/gists{/gist_id}","starred_url":"https://api.github.com/users/jdchristensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdchristensen/subscriptions","organizations_url":"https://api.github.com/users/jdchristensen/orgs","repos_url":"https://api.github.com/users/jdchristensen/repos","events_url":"https://api.github.com/users/jdchristensen/events{/privacy}","received_events_url":"https://api.github.com/users/jdchristensen/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T20:37:40Z","updated_at":"2015-12-04T20:37:40Z","body":"    $ attic init test2.attic\r\n    Initializing repository at \"test2.attic\"\r\n    Encryption NOT enabled.\r\n    Use the \"--encryption=passphrase|keyfile\" to enable encryption.\r\n    Initializing cache...\r\n    \r\n    $ attic create test2.attic::1 foo\r\n    \r\n    $ ./borg-linux64 upgrade test2.attic\r\n    making a hardlink copy in /tmp/jdc/test2.attic.upgrade-2015-12-04-15:31:33\r\n    opening attic repository with borg and converting\r\n    no key file found for repository\r\n    converting index index b'/tmp/jdc/test2.attic/index.2'\r\n    copying attic cache file from /home/jdc/.cache/attic/1b8ffdb91a5cefae0af6b7ec4a3a9ebcd0ff22aa0e497a0705796a679ee2f95d/config to /home/jdc/.cache/borg/1b8ffdb91a5cefae0af6b7ec4a3a9ebcd0ff22aa0e497a0705796a679ee2f95d/config\r\n    copying attic cache file from /home/jdc/.cache/attic/1b8ffdb91a5cefae0af6b7ec4a3a9ebcd0ff22aa0e497a0705796a679ee2f95d/files to /home/jdc/.cache/borg/1b8ffdb91a5cefae0af6b7ec4a3a9ebcd0ff22aa0e497a0705796a679ee2f95d/files\r\n    copying attic cache file from /home/jdc/.cache/attic/1b8ffdb91a5cefae0af6b7ec4a3a9ebcd0ff22aa0e497a0705796a679ee2f95d/chunks to /home/jdc/.cache/borg/1b8ffdb91a5cefae0af6b7ec4a3a9ebcd0ff22aa0e497a0705796a679ee2f95d/chunks\r\n    converting cache /home/jdc/.cache/borg/1b8ffdb91a5cefae0af6b7ec4a3a9ebcd0ff22aa0e497a0705796a679ee2f95d/chunks\r\n    converting 1 segments...\r\n    converting segment 1/1, 100.00% done (/tmp/jdc/test2.attic/data/0/2)\r\n    \r\n    $ ls -l test2.attic*/index.2\r\n    -rw-rw---- 2 jdc jdc 40978 Dec  4 15:31 test2.attic/index.2\r\n    -rw-rw---- 2 jdc jdc 40978 Dec  4 15:31 test2.attic.upgrade-2015-12-04-15:31:33/index.2\r\n    \r\n    $ ls -i test2.attic*/index.2\r\n    6700175 test2.attic/index.2\r\n    6700175 test2.attic.upgrade-2015-12-04-15:31:33/index.2\r\n\r\nThe two index.2 files have the same inode number.\r\n\r\nAh, but now I see that the data files are different, so in that case the hardlinks are broken."}}