i need to restore a nagios backup created with
tar -czvf /opt/nagiosbackup.tar.gz /usr/local/nagios
what the EXACT command to launch to restore it?
tar -xzf file.tar.gz
Option x
to extract, z
to uncompress a .gz and f
to tell tar that it's a file.
Edit : if you want to uncompress the archive in a different location you need to use -C /path/to/directory
or --directory /path/to/directory