Is it possible to restore a single file from the .tar backup? I don't want to restore total backup. I just want to restore one single file from the backup.
Is it possible to restore a single file from the .tar backup? I don't want to restore total backup. I just want to restore one single file from the backup.
1. Using the Command-line tar
Yes, just give the full stored path of the file after the tarball name.
Example: suppose you want file
etc/apt/sources.list
frometc.tar
:Will extract
sources.list
and create directoriesetc/apt
under the current directory.-t
listing option instead of-x
, maybe along with grep, to find the path of the file you want--wildcards
, etc. for more advanced partial extraction scenarios; seeman tar
2. Extract it with the Archive Manager
Open the tar in Archive Manager from Nautilus, go down into the folder hierarchy to find the file you need, and extract it.
mc
) to accomplish the same.3. Using Nautilus/Archive-Mounter
Right-click the tar in Nautilus, and select Open with ArchiveMounter.
The tar will now appear similar to a removable drive on the left, and you can explore/navigate it like a normal drive and drag/copy/paste any file(s) you need to any destination.