{"action":"created","issue":{"url":"https://api.github.com/repos/borgbackup/borg/issues/271","repository_url":"https://api.github.com/repos/borgbackup/borg","labels_url":"https://api.github.com/repos/borgbackup/borg/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/borgbackup/borg/issues/271/comments","events_url":"https://api.github.com/repos/borgbackup/borg/issues/271/events","html_url":"https://github.com/borgbackup/borg/issues/271","id":111166463,"number":271,"title":"please add something like --existing-ok to init command","user":{"login":"rpodgorny","id":2897520,"avatar_url":"https://avatars0.githubusercontent.com/u/2897520?v=4","gravatar_id":"","url":"https://api.github.com/users/rpodgorny","html_url":"https://github.com/rpodgorny","followers_url":"https://api.github.com/users/rpodgorny/followers","following_url":"https://api.github.com/users/rpodgorny/following{/other_user}","gists_url":"https://api.github.com/users/rpodgorny/gists{/gist_id}","starred_url":"https://api.github.com/users/rpodgorny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpodgorny/subscriptions","organizations_url":"https://api.github.com/users/rpodgorny/orgs","repos_url":"https://api.github.com/users/rpodgorny/repos","events_url":"https://api.github.com/users/rpodgorny/events{/privacy}","received_events_url":"https://api.github.com/users/rpodgorny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2015-10-13T12:08:59Z","updated_at":"2018-04-02T20:54:47Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"i think it would be pretty nice (and quite useful for my case) to have an option to make borg not fail with exception and traceback on 'borg init' when the repository already exists.\n\nthat way, i could set my backup script (which basically does init+create+prune) to exit on failure (set -e).\n"},"comment":{"url":"https://api.github.com/repos/borgbackup/borg/issues/comments/378042574","html_url":"https://github.com/borgbackup/borg/issues/271#issuecomment-378042574","issue_url":"https://api.github.com/repos/borgbackup/borg/issues/271","id":378042574,"user":{"login":"mlbarrow","id":1889714,"avatar_url":"https://avatars3.githubusercontent.com/u/1889714?v=4","gravatar_id":"","url":"https://api.github.com/users/mlbarrow","html_url":"https://github.com/mlbarrow","followers_url":"https://api.github.com/users/mlbarrow/followers","following_url":"https://api.github.com/users/mlbarrow/following{/other_user}","gists_url":"https://api.github.com/users/mlbarrow/gists{/gist_id}","starred_url":"https://api.github.com/users/mlbarrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlbarrow/subscriptions","organizations_url":"https://api.github.com/users/mlbarrow/orgs","repos_url":"https://api.github.com/users/mlbarrow/repos","events_url":"https://api.github.com/users/mlbarrow/events{/privacy}","received_events_url":"https://api.github.com/users/mlbarrow/received_events","type":"User","site_admin":false},"created_at":"2018-04-02T20:54:47Z","updated_at":"2018-04-02T20:54:47Z","author_association":"NONE","body":"Unless I don't understand your question, couldn't you just look at the\ntop-level of the directory for these contents:\nREADME config data/ hints.1 index.1 integrity.1\n\n*michael at barrow dot me*\n+1.541.600.2027\n\n\"Do not anticipate trouble, or\nworry about what may never happen.\nKeep in the sunlight.\" -- B. Franklin\n\nOn Mon, Apr 2, 2018 at 1:08 PM, David-5-1 <notifications@github.com> wrote:\n\n> Hi,\n>\n> I was looking for a way to ensure some borg repository is initialized and\n> ended up here. My goal is to have one central backup server with one borg\n> repository for each server and manage everything with ansible (i.e. have\n> both server and backup configuration automated).\n>\n> The least dirty workaround I can think of would be to use borg check to\n> check if the repository is created but this would likely end up in ansible\n> runs taking up a long time :/ and the only realistic solution I could think\n> of is to check that borg init fails with return code 2 and a message like\n> \"Repository .* already exists.\" in stderr…\n>\n> Are there good reasons not to do what I try to do ? (I know having\n> multiple repositories will use more disk space.)\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/borgbackup/borg/issues/271#issuecomment-378029239>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ABzVssUAmM0NxCxeejbjV77lshnVQKSYks5tkoVFgaJpZM4GNzoc>\n> .\n>\n"}}
{"actor":{"display_login":"mlbarrow"}}