backup and restore for homebrew