Skip to content
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 initial overwrites more user friendly #18

Open
ingydotnet opened this issue Mar 20, 2015 · 1 comment
Open

Make initial overwrites more user friendly #18

ingydotnet opened this issue Mar 20, 2015 · 1 comment

Comments

@ingydotnet
Copy link
Owner

When a user sets up ... on existing configured machine, it will backup and
overwrite their files.

If we only used the symlink method, then we could detect this and tell them
what we are doing and DTRTs.

Maybe make method required and then heavily suggest using symlink.

@wwalker
Copy link
Contributor

wwalker commented Mar 8, 2016

Ingy.. great product! Thank you!

I just found today that my .bashrc.local had become unlinked from the source file in .../src/..... I have no idea how, nor do I know how many times in the past I've lost edits because of this.

I use the hard link method. I really like the hard link method.

However, using either hard or sym link method, an ill behaved app or editor can remove the file in the home dir and replace it with a local file.

So, it seems we should detect "if the target file is not a link to the source file". This could be done every time in do_backup.

I'll endeavor to create a patch for this. My perl is rusty, but....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants