{"action":"created","issue":{"url":"https://api.github.com/repos/rcmdnk/homebrew-file/issues/28","labels_url":"https://api.github.com/repos/rcmdnk/homebrew-file/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/rcmdnk/homebrew-file/issues/28/comments","events_url":"https://api.github.com/repos/rcmdnk/homebrew-file/issues/28/events","html_url":"https://github.com/rcmdnk/homebrew-file/issues/28","id":116929663,"number":28,"title":"Add configuration options for backup files","user":{"login":"nfarrar","id":831349,"avatar_url":"https://avatars.githubusercontent.com/u/831349?v=3","gravatar_id":"","url":"https://api.github.com/users/nfarrar","html_url":"https://github.com/nfarrar","followers_url":"https://api.github.com/users/nfarrar/followers","following_url":"https://api.github.com/users/nfarrar/following{/other_user}","gists_url":"https://api.github.com/users/nfarrar/gists{/gist_id}","starred_url":"https://api.github.com/users/nfarrar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfarrar/subscriptions","organizations_url":"https://api.github.com/users/nfarrar/orgs","repos_url":"https://api.github.com/users/nfarrar/repos","events_url":"https://api.github.com/users/nfarrar/events{/privacy}","received_events_url":"https://api.github.com/users/nfarrar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-14T14:39:56Z","updated_at":"2015-11-15T10:34:28Z","closed_at":null,"body":"When rerunning brew file init (when you already have a brew file, but things got out of sync) - homebrew-file creates the backup file 'brewfile.bak' in the same directory as the original file. It would be helpful to timestamp this file and allow a configurable path.\r\n\r\nI keep my brewfile synchronized across several systems, because of this, the brewfile can get out of sync pretty easily. It would be very helpful to:\r\n\r\n- change the save path for the brewfile backup (so I can have backups saved to `$XDG_CACHE_HOME/homebrew/*.bak`, rather than polluting my config directories\r\n- have them timestamped, so that each backup doesn't overwrite the previous backup\r\n- have them timestamped, so that i can easily reference the date they were relevant\r\n\r\nAny possibility of adding this?"},"comment":{"url":"https://api.github.com/repos/rcmdnk/homebrew-file/issues/comments/156800708","html_url":"https://github.com/rcmdnk/homebrew-file/issues/28#issuecomment-156800708","issue_url":"https://api.github.com/repos/rcmdnk/homebrew-file/issues/28","id":156800708,"user":{"login":"rcmdnk","id":1818935,"avatar_url":"https://avatars.githubusercontent.com/u/1818935?v=3","gravatar_id":"","url":"https://api.github.com/users/rcmdnk","html_url":"https://github.com/rcmdnk","followers_url":"https://api.github.com/users/rcmdnk/followers","following_url":"https://api.github.com/users/rcmdnk/following{/other_user}","gists_url":"https://api.github.com/users/rcmdnk/gists{/gist_id}","starred_url":"https://api.github.com/users/rcmdnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcmdnk/subscriptions","organizations_url":"https://api.github.com/users/rcmdnk/orgs","repos_url":"https://api.github.com/users/rcmdnk/repos","events_url":"https://api.github.com/users/rcmdnk/events{/privacy}","received_events_url":"https://api.github.com/users/rcmdnk/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T10:34:28Z","updated_at":"2015-11-15T10:34:28Z","body":"I think the backup is no longer needed because it is normally managed in git repository or cloud storage in these a history is available.\r\n\r\nThen, I implemented new option of `-b`, `--backup`, and environment variable `HOMEBREW_BREWFILE_BACKUP` to set the backup file name.\r\nThe default is empty. If it is empty, no backup file is made.\r\n\r\n"}}