Closed juiceblender closed 7 years ago
I've retested and updated the PR based on your comments, let me know if there are any more changes you think would be good :)
This feature has been needed for a long time, thanks for contributing it! I also appreciate the approach of leaving the default behavior the same and enabling recursive via a simple flag.
Hi,
I've done a little bit of changes to also make it able to restore CLogs as referenced in https://github.com/JeremyGrosser/tablesnap/issues/88.
Hopefully it's much cleaner now. Also please let me know if you would like to split out the branches. I've tested these on my test EC2 instances, so should be good.
Hello!
This commit makes tableslurp able to restore recursively based on the origin provided. I've tried to make it backwards compatible so it keeps it's original behaviour in case there are others using it. I'm not good with Python and I don't know Pythonic ways of doing things so comments are welcome.
Basically, it introduces a
--recursive
flag, and for every found table it will create aDownloadHandler
, let that run to completion, then move on to the next table. An example:The end result is:
The current way of doing it is still preserved:
Giving:
The current way of doing it is a little bit finicky as mentioned in https://github.com/JeremyGrosser/tablesnap/issues/57. I've also added a check to make
--recursive
and-file
mutually exclusive.Thanks!