-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make a back up of overwiritten file or folder #90
Comments
I think this was requested before, see #12 |
I don't think there's any need to change the existing behavior for force. After all, it is called "force" 😛. What would you think about having a separate I didn't really like it back in #12, but I think enough people have been asking for this that we can add it. |
The use cases are: |
Ok, let's make this happen. I like having a Does anyone want to submit a PR for this? |
hi I added backup option it is backup: dir_name dir_name is name off sub directory inside dotfile dir in that directory backup off existing files is created. Also I added one more option. Adding non existing entries in config file, they will be added and recreated with link. code is here https://github.com/ibeex/dotbot |
I don't think the backup location should have to be inside the dotfiles directory - it has nothing to do with your current dotfiles and probably shouldn't be synced to git |
@ashyon For most scenarios you are probably right. I was using principle better safe then sorry. I don't think there is to much overhead if backup dir is in dotfiles directory. If you don't need it in git, it can always go in .gitignore. |
Closing due to age / inactivity. I've gone back and forth on the necessity of this feature, but I feel like if more people needed it, there would have been more activity on the relevant GitHub issues. ¯_(ツ)_/¯ |
Oops I see that there is an open PR that implements this functionality (indicating more recent interest): #349 |
Hello everyone,
When the force option is true, dotbot removes the original file. That could be risky. Will it be better if the original file or folder is renamed with a version suffix
1,2, like emacs did for its backup files?Thank you!
The text was updated successfully, but these errors were encountered: