{"action":"opened","issue":{"url":"https://api.github.com/repos/tmaczukin/simple_backup/issues/5","labels_url":"https://api.github.com/repos/tmaczukin/simple_backup/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/tmaczukin/simple_backup/issues/5/comments","events_url":"https://api.github.com/repos/tmaczukin/simple_backup/issues/5/events","html_url":"https://github.com/tmaczukin/simple_backup/issues/5","id":70543803,"number":5,"title":"Add backup strategies mechanism","user":{"login":"tmaczukin","id":628188,"avatar_url":"https://avatars.githubusercontent.com/u/628188?v=3","gravatar_id":"","url":"https://api.github.com/users/tmaczukin","html_url":"https://github.com/tmaczukin","followers_url":"https://api.github.com/users/tmaczukin/followers","following_url":"https://api.github.com/users/tmaczukin/following{/other_user}","gists_url":"https://api.github.com/users/tmaczukin/gists{/gist_id}","starred_url":"https://api.github.com/users/tmaczukin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmaczukin/subscriptions","organizations_url":"https://api.github.com/users/tmaczukin/orgs","repos_url":"https://api.github.com/users/tmaczukin/repos","events_url":"https://api.github.com/users/tmaczukin/events{/privacy}","received_events_url":"https://api.github.com/users/tmaczukin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tmaczukin/simple_backup/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-23T23:54:31Z","updated_at":"2015-04-23T23:54:31Z","closed_at":null,"body":"For now there is only one strategy - keep N last backups and remove the oldest ones for each source.\r\n\r\nSimpleBackup should also ensure a strategy, where one can define, for example:\r\n* keep last 7 backups (e.g. daily backups),\r\n* keep each 7th backup and keep last 4 of those backups (e.g. weekly backups),\r\n* keep each 30th backup and keep last 12 of those backups (e.g. monthly backups).\r\n\r\nFor that strategy to work there should be some sort of metadata storage mechanism (local file?, SQLite db?, nameing of backup files?).\r\n"}}