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

Fix restore bug, and sort restoreable backups by mtime #1

Merged
merged 1 commit into from
Sep 7, 2017

Conversation

joelbernstein
Copy link
Contributor

@joelbernstein joelbernstein commented Sep 6, 2017

Hi @zeenlym

I have found and fixed a bug in the restore functionality. The way you were constructing the 2>/dev/null shell redirection was not working, as it must be 2>wherever and not (as you had) 2 > wherever. Your command resulted in passing a '2' argument to 7zr which caused it to try to extract a file called '2' which does not exist in the archive.

I have also added some (not very well tested) code to sort the list of backups available to restore by file modification time, this makes it easier to select the correct one.

Can you merge this into master and rebuild the docker image on docker hub please?

@joelbernstein
Copy link
Contributor Author

Actually, the sorting doesn't work (got a dict where i didn't expect one) so I'll back that out and revisit later.

The 2>/dev/null bugfix works.

sort backups by file mtime

Revert "sort backups by file mtime"

This reverts commit 2b2137f.
@joelbernstein
Copy link
Contributor Author

This fixes #2 - please apply / discuss.

@joelbernstein
Copy link
Contributor Author

Nonetheless, this does make me wonder whether you have actually tested the restore system at all?

@zeenlym zeenlym merged commit 879add1 into zeenlym:master Sep 7, 2017
@zeenlym
Copy link
Owner

zeenlym commented Sep 7, 2017

thanks for correction

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

Successfully merging this pull request may close these issues.

2 participants