-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
restore doesn't restore changed files #547
Comments
Hey, thanks for reporting this. I find your report confusing, can you try to elaborate what the undesired behavior is? Regarding the file
when running the second backup and
after restore? Can you create a tar of the restic repository and upload it somewhere for me so I can investigate? |
Here is repository: There is no second backup in this test scenario, only one backup and one restore. So simplified steps look like this:
And the undesider behavior is that modified files are not returned to they original versions by restore. In example of file
2.No changes:
3.Make changes:
4.After restore:
|
Thanks, I'll have a look. What's the password used for the repo? |
password is: test01 |
What version of restic is this? The
|
I am really sorry for trouble. I included in report wrong version from different machine where I also tested if this problem is reproducible. Here is the correct version that I used in this example:
And all commands you asked.
git diff is empty git log --pretty=short origin/master.. is also empty |
Since there hasn't been any activity here recently and I cannot reproduce the issue I'm going to close it for now. Please feel free to add further comments. Thanks. |
Output of
restic version
restic 0.1.0 (1869591-dirty)
compiled at 2016-07-13 10:24:33 with go1.6.2
Environment: GNU/Linux
Expected behavior
After restore all files will return to the state from time snapshot was taken.
Actual behavior
After restore, files with changes were not restored properly. Changes persist after restore or file after restore is mixed.
Steps to reproduce the behavior
In this example all test files contain one line of text like:
This is content of file Dir01/test01.txt
RESULT of cat command on files:
The text was updated successfully, but these errors were encountered: