{"action":"created","issue":{"url":"https://api.github.com/repos/restic/restic/issues/333","labels_url":"https://api.github.com/repos/restic/restic/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/restic/restic/issues/333/comments","events_url":"https://api.github.com/repos/restic/restic/issues/333/events","html_url":"https://github.com/restic/restic/issues/333","id":114559172,"number":333,"title":"wrong Windows drive handling","user":{"login":"frederich","id":274349,"avatar_url":"https://avatars.githubusercontent.com/u/274349?v=3","gravatar_id":"","url":"https://api.github.com/users/frederich","html_url":"https://github.com/frederich","followers_url":"https://api.github.com/users/frederich/followers","following_url":"https://api.github.com/users/frederich/following{/other_user}","gists_url":"https://api.github.com/users/frederich/gists{/gist_id}","starred_url":"https://api.github.com/users/frederich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frederich/subscriptions","organizations_url":"https://api.github.com/users/frederich/orgs","repos_url":"https://api.github.com/users/frederich/repos","events_url":"https://api.github.com/users/frederich/events{/privacy}","received_events_url":"https://api.github.com/users/frederich/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/restic/restic/labels/backup","name":"backup","color":"bfd4f2"},{"url":"https://api.github.com/repos/restic/restic/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/restic/restic/labels/help%20wanted","name":"help wanted","color":"bfe5bf"},{"url":"https://api.github.com/repos/restic/restic/labels/platform:Windows","name":"platform:Windows","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-02T09:39:26Z","updated_at":"2015-11-04T09:42:24Z","closed_at":null,"body":"Normally you can address a whole Windows drive via `c:\\` or `c:`. Restic cannot handle `c:\\` literals. All snapshots are empty.\r\n\r\n```\r\n%HOME%\\restic.exe -r g:\\backup backup e:\\\r\n                                     ^^^^^  \r\n\r\ng:\\>restic -r backup ls 0f81a5b0\r\nenter password for repository:\r\nsnapshot of [e:\\] at 2015-11-02 10:29:35.0378875 +0100 CET:\r\n```\r\n\r\nCreating a snapshot without the trailing blackslash works.\r\n```\r\n%HOME%\\restic.exe -r g:\\backup backup e:\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/restic/restic/issues/comments/153661338","html_url":"https://github.com/restic/restic/issues/333#issuecomment-153661338","issue_url":"https://api.github.com/repos/restic/restic/issues/333","id":153661338,"user":{"login":"frederich","id":274349,"avatar_url":"https://avatars.githubusercontent.com/u/274349?v=3","gravatar_id":"","url":"https://api.github.com/users/frederich","html_url":"https://github.com/frederich","followers_url":"https://api.github.com/users/frederich/followers","following_url":"https://api.github.com/users/frederich/following{/other_user}","gists_url":"https://api.github.com/users/frederich/gists{/gist_id}","starred_url":"https://api.github.com/users/frederich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frederich/subscriptions","organizations_url":"https://api.github.com/users/frederich/orgs","repos_url":"https://api.github.com/users/frederich/repos","events_url":"https://api.github.com/users/frederich/events{/privacy}","received_events_url":"https://api.github.com/users/frederich/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T09:42:24Z","updated_at":"2015-11-04T09:42:24Z","body":"I've run some tests. Normally each physical Windows drive as a `$RECYCLE.BIN` and `System \r\nVolume Information` folder. Both folder are not backup relevant. I think restic can automatically ignore them if the specified backup path is a Windows drive literal: c:\\, d:\\, e:\\.\r\n\r\nThe drive literal `e:\\` works, but only when `$RECYCLE.BIN` and `System Volume Information` are excluded. See log attachment.\r\n\r\nThe wrong call\r\n```\r\ne:\\tmp>e:\\home\\jf\\bin\\restic -r restic_drive backup e:\\\r\n```\r\nThe right call\r\n```\r\ne:\\home\\jf\\bin\\restic -r restic_drive backup --exclude \"$RECYCLE.BIN\" --exclude \"System Volume Information\" e:\\\r\n```"}}