Comments (6)
Thanks for the suggestion!
Hmm, where should the backup file be backed up, ${file}.bak
? What if that file exists already? We could back it up to ${file}.bak.${number}
, but then that gets a bit ugly.
This seems to be a one-time thing per machine, and it should probably require user interaction (to merge information from old config files, etc) or at least alert the user. I'm not sure what's the best way of designing this feature. Maybe it's best to leave it up to the user, the way it is now?
from dotbot.
I think this is best left to the user.
I'm going to go ahead and close it for now. Feel free to reopen it if you have any ideas.
from dotbot.
Voting for such a feature.
Existing dotfiles could be backed up in ~/.dotfiles-backup/, or ~/.dotfiles-backup/timestamp/ Allowing us to quickly set up our dotfiles, knowing we can easily check, merge and revert if needed.
from dotbot.
Hmm, I guess we can reopen this issue.
I still don't know what the best way of handling this is. Would every file go to the backup folder? What if there are name collisions? Should the backup folder mirror the directory hierarchy instead?
I think there's some stuff to figure out before this could be implemented.
And as of now, I still think it's best left to the user -- in the majority of cases that I can think of, this isn't something that needs to be handled multiple times, and so it's probably handled best on a case by case basis anyways.
from dotbot.
A KISS proposal
- simply backup any replaced (aka deleted) dotfiles; eventually dropin directory hierarchy
- local, ie in $HOME out of the
dotfiles
dir. - a
backup-timestamp
folder would avoid any filename collisions I can think of (unless server's a real mess :) Since it's a local folder
That only would add serenity, when eg in a hurry to deploy.
from dotbot.
Let's leave this as-is for now.
I don't know if the hurry-to-deploy scenario happens often enough to warrant the additional complexity in the code.
from dotbot.
Related Issues (20)
- Command output for conditionals appears to fail for Git Bash HOT 2
- Question : Linking file from web HOT 2
- module 'yaml' has no attribute 'safe_load' HOT 2
- [BUG] Tips and Tricks -> install-profile HOT 2
- [Errno 2] No such file or directory: 'install.conf.yaml' HOT 2
- 'list' object has no attribute 'items'
- Dotbot from PyPI just won't work under Windows10 HOT 3
- Named conditions (and block directive) HOT 2
- BUG: Dotbot interpreted tilde slash ~/ as root, not user home. HOT 1
- fatal: not a git repository: HOT 3
- Some files are not uploading properly
- How to add exclusion HOT 1
- `if` with shell function satisfying interface
- Hardlink support HOT 4
- Inclusion list HOT 2
- Trying to link a file from a submodule into a subdirectory of a directory managed by dotbot HOT 1
- Drop support for python 2.7 HOT 6
- All plugins using sub-directives implemented with Dispatcher broken HOT 3
- Installing dotbot via python fails HOT 6
- Wheel distribution on pypi doesn't pass the tests since it's missing some files under the tests/ directory HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotbot.