{"action":"created","issue":{"url":"https://api.github.com/repos/restic/restic/issues/549","repository_url":"https://api.github.com/repos/restic/restic","labels_url":"https://api.github.com/repos/restic/restic/issues/549/labels{/name}","comments_url":"https://api.github.com/repos/restic/restic/issues/549/comments","events_url":"https://api.github.com/repos/restic/restic/issues/549/events","html_url":"https://github.com/restic/restic/issues/549","id":167587880,"number":549,"title":"Unable to backup/restore files/dirs with same name","user":{"login":"rwlodarc","id":20659287,"avatar_url":"https://avatars0.githubusercontent.com/u/20659287?v=4","gravatar_id":"","url":"https://api.github.com/users/rwlodarc","html_url":"https://github.com/rwlodarc","followers_url":"https://api.github.com/users/rwlodarc/followers","following_url":"https://api.github.com/users/rwlodarc/following{/other_user}","gists_url":"https://api.github.com/users/rwlodarc/gists{/gist_id}","starred_url":"https://api.github.com/users/rwlodarc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwlodarc/subscriptions","organizations_url":"https://api.github.com/users/rwlodarc/orgs","repos_url":"https://api.github.com/users/rwlodarc/repos","events_url":"https://api.github.com/users/rwlodarc/events{/privacy}","received_events_url":"https://api.github.com/users/rwlodarc/received_events","type":"User","site_admin":false},"labels":[{"id":148214858,"url":"https://api.github.com/repos/restic/restic/labels/backup","name":"backup","color":"bfd4f2","default":false},{"id":95485885,"url":"https://api.github.com/repos/restic/restic/labels/bug","name":"bug","color":"fc2929","default":true},{"id":148214822,"url":"https://api.github.com/repos/restic/restic/labels/restore","name":"restore","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-07-26T11:48:05Z","updated_at":"2017-09-08T06:14:14Z","closed_at":null,"author_association":"NONE","body":"## Output of `restic version`\n\nrestic 0.1.0\ncompiled at 2016-07-20 12:42:43 with go1.6.3\n## Expected behavior\n\nAfter restore all directories should be restored.\n## Actual behavior\n\nOnly one directory is restored.\n## Steps to reproduce the behavior\n1. Create files\n\n/tmp/restic/FILESNEW01/Dir01/Test01.txt\n/tmp/restic/FILESNEW01/Dir01/Test02.txt\n/tmp/restic/FILESNEW01/Dir01/Test03.txt\n\n/tmp/restic/FILESNEW02/Dir01/Test01.txt\n/tmp/restic/FILESNEW02/Dir01/Test02.txt\n/tmp/restic/FILESNEW02/Dir01/Test03.txt\n\ncontent of files:\n**`cat /tmp/restic/FILESNEW01/Dir01/Test0*`**\n`Content file. /tmp/restic/FILESNEW01/Dir01/Test01.txt`\n`Content file. /tmp/restic/FILESNEW01/Dir01/Test02.txt`\n`Content file. /tmp/restic/FILESNEW01/Dir01/Test03.txt` \n\n**`cat /tmp/restic/FILESNEW02/Dir01/Test0*`**\n`Content file. /tmp/restic/FILESNEW02/Dir01/Test01.txt`\n`Content file. /tmp/restic/FILESNEW02/Dir01/Test01.txt`\n`Content file. /tmp/restic/FILESNEW02/Dir01/Test03.txt`\n\nI want backup\n- /tmp/restic/FILESNEW01/Dir01/\n- /tmp/restic/FILESNEW02/Dir01/\n\nCommands:\nInitiate repository in /tmp/restic/BACKUP directory\n- **restic -r /tmp/restic/BACKUP/ init**\n\nMake backup \n-  **restic backup /tmp/restic/FILESNEW01/Dir01 /tmp/restic/FILESNEW02/Dir01 -r /tmp/restic/BACKUP/**\n  \n  `scan [/tmp/restic/FILESNEW01/Dir01 /tmp/restic/FILESNEW02/Dir01]`\n  `scanned 2 directories, 6 files in 0:00`\n  `[0:00] 16.67%  0B/s  51B / 306B  0 / 8 items  0 errors  ETA 0:00\n  duration: 0:00, 0.01MiB/s`\n  `snapshot 4d197b90 saved`\n\nChecking if backup exists in repository\n- **restic -r /tmp/restic/BACKUP/ snapshots**\n\n`ID        Date                 Host        Directory`\n\n`4d197b90  2016-07-26 14:14:43  nebss       /tmp/restic/FILESNEW01/Dir01\n                                           /tmp/restic/FILESNEW02/Dir01`\n\nRestore backup\n- **restic -r /tmp/restic/BACKUP/ restore 4d197b90  -t /tmp/restic/RESTORE/**\n\n`restoring <Snapshot 4d197b90 of [/tmp/restic/FILESNEW01/Dir01 /tmp/restic/FILESNEW02/Dir01] at 2016-07-26 14:14:43.208840145 +0300 EEST> to /tmp/restic/RESTORE/`\n\nChecking if directories/files exists\n- **ls /tmp/restic/RESTORE/**\n  `Dir01`\n- **cat /tmp/restic/RESTORE/Dir01/Test0***\n  `Content file. /tmp/restic/FILES01/Dir01/Test01.txt`\n  `Content file. /tmp/restic/FILES01/Dir01/Test02.txt`\n  `Content file. /tmp/restic/FILES01/Dir01/Test03.txt`\n"},"comment":{"url":"https://api.github.com/repos/restic/restic/issues/comments/328008992","html_url":"https://github.com/restic/restic/issues/549#issuecomment-328008992","issue_url":"https://api.github.com/repos/restic/restic/issues/549","id":328008992,"user":{"login":"fd0","id":123276,"avatar_url":"https://avatars1.githubusercontent.com/u/123276?v=4","gravatar_id":"","url":"https://api.github.com/users/fd0","html_url":"https://github.com/fd0","followers_url":"https://api.github.com/users/fd0/followers","following_url":"https://api.github.com/users/fd0/following{/other_user}","gists_url":"https://api.github.com/users/fd0/gists{/gist_id}","starred_url":"https://api.github.com/users/fd0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fd0/subscriptions","organizations_url":"https://api.github.com/users/fd0/orgs","repos_url":"https://api.github.com/users/fd0/repos","events_url":"https://api.github.com/users/fd0/events{/privacy}","received_events_url":"https://api.github.com/users/fd0/received_events","type":"User","site_admin":false},"created_at":"2017-09-08T06:14:14Z","updated_at":"2017-09-08T06:14:14Z","author_association":"OWNER","body":"So, #1209 improves the situation by detecting name conflicts and resolving them (by renaming), but this issue is still not fully resolved. I'm working on it :)"}}
{"actor":{"display_login":"fd0"}}