How to expand tar.gz

Situation
All my data is gone. I have extracted openemr.tar.gz from my backup file, as well as openemr.sql.gz. What is the method to restore everything? I have installed the “restore” program under “util” but this seems to need arguments and I do not understand which arguments to use.
Do I need to have openemr installed first before I restore? or does the tarball have all the information to install the program and the old data?

OpenEMR Version
I’m using OpenEMR version 5.0.1(6)

Browser:
I’m using: firefox

Operating System
I’m using: ubuntu 17.10

Logs
Did you check the logs? Was there anything pertinent in them? Paste them here (surround with three backticks (```) for readability

@docrovner,
Have you followed the steps mentioned in below link?
https://www.open-emr.org/wiki/index.php/Backing_Up_Using_the_Built_In_Tools

Thanks,
ViSolve

Thanks for the link. I