-
Notifications
You must be signed in to change notification settings - Fork 6
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
weird flow when restoring a removed directory #27
Comments
To be clear, this is the error I'm talking about |
Wouldn't it be surprising if you restored a directory and it gave you every file that's ever been in that directory? How would that work if there were many revisions of the same file (with the same name)? I think it's correct to ask you for a timestamp and restore the directory as it was at that timestamp. |
Also I'm shocked that someone is using gb! LOL How long have you been using it?? with how many files? |
really??????????????????????????? |
why |
i didn't like how anything else worked and decided "well if it's in Go and i don't like smth i can hack together my own features" and ended up being okay with how it works. normally i'd just roll my own solution for shit but i don't have the time anymore to write my own backup solution and test it in real world senarios to be sure it's reliable so i trust yours works fine rofl ~150k files stored as of this morning :p |
This is a good point, maybe it should restore all files with
For about 8 months, and with only about 10gb of files (I don't backup much media with gb) |
This is a reasonable idea. I'd be okay with adding an option to restore to do the most recent version of every file, but it won't be the default. |
Actual S3 in my case :3 |
wip here #28 |
When trying to restore a directory with a non-null
files.end
, it is pretty much a certainty thatfiles.end < now
. I don't understand why gb fails to restore instead of just restoring latest version?This issue is compounded because as far as I can tell there's not a clear way to get the latest timestamp for a directory? I had to
gb ls
and grab a random one from a file, though this may just be me missing something.To resolve, I think:
gb restore
should not exclude files wherefiles.end < now
in the querygb ls
should also output information about directories (though this seems much more complicated)What do you think?
The text was updated successfully, but these errors were encountered: