STEP 1 : (Using the tar command on the directory /example)
Suppose you have a directory /stuff. To tar everything in stuff to create a “.tar” file.
# tar -cvf example.tar example
It will create example.tar file.
STEP 2 : (Using the tar command to create a “.tar.gz” of /example)
# tar -czf example.tar.gz example
STEP 3 : (List the files in the archive)
# tar -tzf example.tar.gz
or
# tar -tf example.tar
STEP 4 : (ENCRYPTION)
# tar -zcvf – example | openssl des3 -salt -k secretpassword | dd of=example.des3
This will create example.des3…Please don’t forget the password you put in place of secretpassword.
If you want to do this interactively then
# dd if=example.des3 |openssl des3 -d -k secretpassword|tar zxf -
No comments:
Post a Comment