{"action":"created","issue":{"url":"https://api.github.com/repos/roots/trellis/issues/650","repository_url":"https://api.github.com/repos/roots/trellis","labels_url":"https://api.github.com/repos/roots/trellis/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/roots/trellis/issues/650/comments","events_url":"https://api.github.com/repos/roots/trellis/issues/650/events","html_url":"https://github.com/roots/trellis/pull/650","id":174263517,"number":650,"title":"backup feature","user":{"login":"guilro","id":301998,"avatar_url":"https://avatars.githubusercontent.com/u/301998?v=3","gravatar_id":"","url":"https://api.github.com/users/guilro","html_url":"https://github.com/guilro","followers_url":"https://api.github.com/users/guilro/followers","following_url":"https://api.github.com/users/guilro/following{/other_user}","gists_url":"https://api.github.com/users/guilro/gists{/gist_id}","starred_url":"https://api.github.com/users/guilro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guilro/subscriptions","organizations_url":"https://api.github.com/users/guilro/orgs","repos_url":"https://api.github.com/users/guilro/repos","events_url":"https://api.github.com/users/guilro/events{/privacy}","received_events_url":"https://api.github.com/users/guilro/received_events","type":"User","site_admin":false},"labels":[{"id":148835691,"url":"https://api.github.com/repos/roots/trellis/labels/up%20for%20review","name":"up for review","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-08-31T12:44:44Z","updated_at":"2016-12-26T17:55:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/roots/trellis/pulls/650","html_url":"https://github.com/roots/trellis/pull/650","diff_url":"https://github.com/roots/trellis/pull/650.diff","patch_url":"https://github.com/roots/trellis/pull/650.patch"},"body":"This is a proposition for a backup feature inspired by @MWDelaney work. \n\nThe role uses [Souts.backup](https://github.com/Stouts/Stouts.backup) to create two duply backup profiles for each `wordpress_sites` which has `backup: {enabled: true}`.\n\nThe configuration for each `wordpress_sites` is the following : \n\n``` yaml\nbackup:\n    enabled: true # creates a backup profile if true (default: false)\n    auto: true # set up a cron job for backup each night if true (default: false)\n    target: scp://user@example.com/website_name # any valid duplicity location\n```\n\nThe parameter `auto` allows to create backup profile without installing the cron job. This is usefull if you want to use the backup profile only to restore backups made from another server, by running `sudo duply website_name_database restore` and `sudo duply website_name_uploads restore` . This can be an interesting solution to synchronize database and uploads between production and staging for example.\n"},"comment":{"url":"https://api.github.com/repos/roots/trellis/issues/comments/269230936","html_url":"https://github.com/roots/trellis/pull/650#issuecomment-269230936","issue_url":"https://api.github.com/repos/roots/trellis/issues/650","id":269230936,"user":{"login":"MWDelaney","id":2457670,"avatar_url":"https://avatars.githubusercontent.com/u/2457670?v=3","gravatar_id":"","url":"https://api.github.com/users/MWDelaney","html_url":"https://github.com/MWDelaney","followers_url":"https://api.github.com/users/MWDelaney/followers","following_url":"https://api.github.com/users/MWDelaney/following{/other_user}","gists_url":"https://api.github.com/users/MWDelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/MWDelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MWDelaney/subscriptions","organizations_url":"https://api.github.com/users/MWDelaney/orgs","repos_url":"https://api.github.com/users/MWDelaney/repos","events_url":"https://api.github.com/users/MWDelaney/events{/privacy}","received_events_url":"https://api.github.com/users/MWDelaney/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T17:55:32Z","updated_at":"2016-12-26T17:55:32Z","body":"I had a server eat itself recently because I didn't have purge working correctly and it used up all the free space. I think purge is important. Maybe daily backups until there's a werk's worth, and then weekly until there's a month, and then monthly for... however long? Purging as you go after each checkpoint is reached?"}}
{"actor":{"display_login":"MWDelaney"}}