Find a file in a tgz file:
$tar -ztvf backup-1.tgz | grep file.txt
-rw-rw-r– user/user 43376920 2017-07-10 11:59 path/to/file.txt
Restore a file from a tgz file:
$tar -zxvf backup-1.tgz path/to/file.txt
Find a file in a tgz file:
$tar -ztvf backup-1.tgz | grep file.txt
-rw-rw-r– user/user 43376920 2017-07-10 11:59 path/to/file.txt
Restore a file from a tgz file:
$tar -zxvf backup-1.tgz path/to/file.txt
Works from the current directory you are in, be careful not to run this from root.
sudo find . -type f -exec chmod 0664 {} \;
sudo find . -type d -exec chmod 0775 {} \;