I am trying to create a .tar file of the filesystem but exclude the
/proc
directory.
The command I have tried is:
tar -czvf mytar.tgz / --exclude='/proc'
But this does not exclude the directory.
I have also tried it without the single quotes.
# tar --version
tar (GNU tar) 1.31
How can I exclude the directory?
Asked by Proletariat
(707 rep)
Mar 31, 2021, 08:29 AM
Last activity: Mar 31, 2021, 09:25 AM
Last activity: Mar 31, 2021, 09:25 AM