tar.gz with gpg-encryption on the fly

tar -cvz /<path>/ | gpg --encrypt --recipient <keyID> > /<backup-path>/backup_`date +%d_%m_%Y`.tar.gz.gpg
Create a encrypted tar.gz file from a directory on the fly. The encryption is done by GPG with a public key. The resulting filename is tagged with the date of creation. Very usefull for encrypted snapshots of folders.

2
2011-02-23 14:19:08

1 Alternatives + Submit Alt

What Others Think

gpg is likely to ask a question, better to use -o option to output the file tar -cz $path | gpg --encrypt --recipient $keyID -o $dest_file
somekool · 407 weeks and 4 days ago
tar --create --file - | gpg --encrypt --recipient --output .tar.gpg
plivox · 367 weeks and 2 days ago
It is good that you have shared the code to create an encrypted tar.gz file from the directory on the fly and those interested can try out the code they have added here which will help you to create an encrypted file Cannabidiol For Sleep
Dwyane · 78 weeks and 4 days ago
Thanks a lot for the detailed information that helps to know about the tar.gz with gpg encryption on the fly they have also added the code that helps in doing it so those who want to try it can use the code that is shared here Outdoor Recreational Sports
Juvanta · 47 weeks and 6 days ago
Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks garbage chute door
Audrey10 · 26 weeks and 6 days ago
Tar.gz with gpg-encryption on the fly, can be a very good idea for protecting your privacy on the web. Tar.gz archive is a good method for storing data in a single file which can easily be extracted into any machine that runs the tar or gzips command. Must you follow this https://taurangaconcrete.co.nz/ and get more helpful skills about concrete materials. I would like to introduce you to how to create tar.gz with gpg encryption on any Linux-based system through bash script and more importantly in such a way that neither it can be tampered with nor it provides any clues to the third party, even after extraction of data from the file.
Wiltionew1928 · 25 weeks and 2 days ago
Great article Lot's of information to Read...Great Man Keep Posting and update to People..Thanks safety deposit box for sale
KayGasaway · 23 weeks and 1 day ago
It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks. Manchester City News
KayGasaway · 22 weeks and 4 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale
rahimhh21 · 22 weeks and 1 day ago
This is a great inspiring article.I am virtually pleased along with your good work.You put really beneficial information. Keep it up. Keep blogging. Seeking to reading your next post. globe ml fusible links
KayGasaway · 19 weeks and 3 days ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me. H1B VISA ATTORNEY
KayGasaway · 19 weeks and 3 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me USA USA USA USA USA USA Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies baby pug puppies for sale pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale
Perfecthomepugs · 12 weeks and 6 days ago
many thanks for writing!. “To forgive is human, to forget divine. . ..” by James Grand.. old cars
mahmishal · 12 weeks and 4 days ago
Excellent share it is without doubt. We’ve been awaiting for this information. RTP slot pragmatic play
HAMZA · 12 weeks ago
Thank you for this specific facts I was basically seeking all Msn in order to find it! check here
gabis31 · 10 weeks and 1 day ago
Many thanks for creating this place wonderful, i need to say i appreciate all of the exertions that you just do on this great website. http://www.dollarization.org/2022/know-the-ways-of-winning-slot-machine-live-games.html">slot
nasew10685 · 9 weeks and 5 days ago
Great post, I believe website owners should larn a lot from this site its really user genial . acim
mahmishal · 9 weeks and 1 day ago
Cool stuff you have got and you keep update all of us. http://www.qpha.in/community/profile/deposit-pulsa-tanpa-potongan-rajagacor/">raja gacor
HAMZA · 8 weeks and 3 days ago
Cool stuff you have got and you keep update all of us. [url=http://www.qpha.in/community/profile/deposit-pulsa-tanpa-potongan-rajagacor/]raja gacor[/url]
HAMZA · 8 weeks and 3 days ago
I gotta favorite this website it seems very helpful . http://www.qpha.in/community/profile/deposit-pulsa-tanpa-potongan-rajagacor/">raja gacor
HAMZA · 8 weeks and 3 days ago
I precisely had to thank you so much yet again. I do not know the things I might have implemented in the absence of the actual creative ideas shared by you on such a area of interest. It absolutely was an absolute frightful crisis in my opinion, but finding out your professional approach you solved it took me to leap with delight. I am happy for this guidance as well as wish you comprehend what an amazing job you were undertaking teaching many others through a blog. I know that you’ve never encountered all of us. slot gacor malam ini
fomajob · 7 weeks and 2 days ago
I don’t unremarkably comment but I gotta admit thankyou for the post on this great one. useful source
mahmishal · 6 weeks ago
We prefer your present post. It may be excellent to see anybody clarify within phrases with the cardio together with lucidity with this crucial concern may be rapidly observed. official website
HAMZA · 4 weeks and 5 days ago
Top-notch post it is surely. My friend has been awaiting for this content. our website
HAMZA · 4 weeks and 4 days ago
Hi there, I found your blog by means of Google at the same time as searching for a related matter, your website got here up, it seems to be great. I have bookmarked it in my google bookmarks. Link Bong88
mahmishal · 4 weeks and 1 day ago
I adore looking at and I think this website got some genuinely utilitarian stuff on it! . Rejuvenate CBD Gummies
fomajob · 3 weeks and 4 days ago
You need to experience a contest for one of the finest blogs on the web. I most certainly will suggest this blog! gta79
gabis31 · 3 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: