{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/537","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/537/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/537/events","html_url":"https://github.com/ansible/ansible-modules-extras/pull/537","id":81077024,"number":537,"title":"Add restore_backup module","user":{"login":"yhekma","id":683671,"avatar_url":"https://avatars.githubusercontent.com/u/683671?v=3","gravatar_id":"","url":"https://api.github.com/users/yhekma","html_url":"https://github.com/yhekma","followers_url":"https://api.github.com/users/yhekma/followers","following_url":"https://api.github.com/users/yhekma/following{/other_user}","gists_url":"https://api.github.com/users/yhekma/gists{/gist_id}","starred_url":"https://api.github.com/users/yhekma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhekma/subscriptions","organizations_url":"https://api.github.com/users/yhekma/orgs","repos_url":"https://api.github.com/users/yhekma/repos","events_url":"https://api.github.com/users/yhekma/events{/privacy}","received_events_url":"https://api.github.com/users/yhekma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/new_module","name":"new_module","color":"bfe5bf"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/P2","name":"P2","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-05-26T18:19:31Z","updated_at":"2015-05-29T13:55:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/537","html_url":"https://github.com/ansible/ansible-modules-extras/pull/537","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/537.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/537.patch"},"body":"I was missing a module to easily revert files from a previous backup. It is ofcourse easily done with a script, but I thought a module would be easier to integrate in a readable fashion in playbooks.\r\nI did a pull request earlier, but it was against the wrong branch and I needed to change some thins as well (turns out strptime is a more sane way of dealing with stuff than only a regex)."},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/106810403","html_url":"https://github.com/ansible/ansible-modules-extras/pull/537#issuecomment-106810403","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/537","id":106810403,"user":{"login":"yhekma","id":683671,"avatar_url":"https://avatars.githubusercontent.com/u/683671?v=3","gravatar_id":"","url":"https://api.github.com/users/yhekma","html_url":"https://github.com/yhekma","followers_url":"https://api.github.com/users/yhekma/followers","following_url":"https://api.github.com/users/yhekma/following{/other_user}","gists_url":"https://api.github.com/users/yhekma/gists{/gist_id}","starred_url":"https://api.github.com/users/yhekma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhekma/subscriptions","organizations_url":"https://api.github.com/users/yhekma/orgs","repos_url":"https://api.github.com/users/yhekma/repos","events_url":"https://api.github.com/users/yhekma/events{/privacy}","received_events_url":"https://api.github.com/users/yhekma/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T13:55:38Z","updated_at":"2015-05-29T13:55:38Z","body":"Thinking about it some more, I only need to consider selinux to be an issue when I am creating the backup, not when restoring it, right? I mean, the file will retain the contexts it was created with, which in turn should be the same as when it was backed up. Any thoughts?\r\nRegarding the backup functionality you are absolutely right, but am still wondering how to implement this cleanly considering the backup_local function does not take an optional target filename..."}}