How to create password encrypted backup with gpgDecrypt files encrypted with gpg using xargsHow to create an encrypted container (dynamically expandable) on OpenBSDbackup / on ntfs filesystem encryptedUsing GPG to decrypt Symantec PGP encrypted files?Recovering GPG keys from a backup directoryHow to Create an Encrypted PasswordNot possible to use batch mode?! FreeBSD gpg 1.4.19Backup on a remote server in an encrypted folderEncrypting directories with gpgEncrypt multimedia files with GPG

What is the command to reset a PC without deleting any files

Is there really no realistic way for a skeleton monster to move around without magic?

Should I join office cleaning event for free?

"You are your self first supporter", a more proper way to say it

Are there any consumables that function as addictive (psychedelic) drugs?

Why is the design of haulage companies so “special”?

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

How old can references or sources in a thesis be?

What exactly is the parasitic white layer that forms after iron parts are treated with ammonia?

What would happen to a modern skyscraper if it rains micro blackholes?

Why CLRS example on residual networks does not follows its formula?

Why Is Death Allowed In the Matrix?

Copenhagen passport control - US citizen

How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?

New order #4: World

Email Account under attack (really) - anything I can do?

Set-theoretical foundations of Mathematics with only bounded quantifiers

What do you call a Matrix-like slowdown and camera movement effect?

What are these boxed doors outside store fronts in New York?

Download, install and reboot computer at night if needed

Why linear maps act like matrix multiplication?

Do Phineas and Ferb ever actually get busted in real time?

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?



How to create password encrypted backup with gpg


Decrypt files encrypted with gpg using xargsHow to create an encrypted container (dynamically expandable) on OpenBSDbackup / on ntfs filesystem encryptedUsing GPG to decrypt Symantec PGP encrypted files?Recovering GPG keys from a backup directoryHow to Create an Encrypted PasswordNot possible to use batch mode?! FreeBSD gpg 1.4.19Backup on a remote server in an encrypted folderEncrypting directories with gpgEncrypt multimedia files with GPG






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















Recently, I made a script that archives important files with gzip,

encrypts them with gpg, using
gpg --symmetric

(which prompts me for a password), then

uploads it.



I was testing the backup on another PC, but cannot decrypt it, even when I supplied the correct password (copy& pasted from password manager). There was an error about half a second after and it failed with an invalid packet error.



How can I encrypt that file, so anyone with the proper password can decrypt it? I don't want to share keyrings as I've read elsewhere unless absolutely necessary, as it's another thing I need to think of and distribute and sync between my machines, including future ones. I would like to decrypt it with just a password.










share|improve this question









New contributor




SoptikHa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 2





    The command is correct. Encrypt with: gpg --symmetric filename, decrypt with gpg --decrypt filename.gpg. What does your script look like? What command do you use to decrypt it?

    – Deathkamp Drone
    2 days ago











  • What was the exact error? It sounds like the password was correct, but something else went wrong? If you don't specify a good --cipher-algo or use --force-mdc you might default to not having any modification detection code. Are you sure the file was transferred unchanged? And +1 to DeathkampDrone's comments too

    – Xen2050
    yesterday












  • Okay, I was able to decrypt it and I can access the files, but I'm not sure if the backup is complete. While decrypting: "gpg: problem reading source (xxx bytes remaining) gpg: handle plaintext failed: No such file or directory gpg: decryption failed: Invalid packet". I'll verify if hash of the uploaded/downloaded file matches. I didn't specify any of these options, it defaulted to AES. Cc @Deathkamp Drone : I used the commands that you wrote.

    – SoptikHa
    yesterday


















1















Recently, I made a script that archives important files with gzip,

encrypts them with gpg, using
gpg --symmetric

(which prompts me for a password), then

uploads it.



I was testing the backup on another PC, but cannot decrypt it, even when I supplied the correct password (copy& pasted from password manager). There was an error about half a second after and it failed with an invalid packet error.



How can I encrypt that file, so anyone with the proper password can decrypt it? I don't want to share keyrings as I've read elsewhere unless absolutely necessary, as it's another thing I need to think of and distribute and sync between my machines, including future ones. I would like to decrypt it with just a password.










share|improve this question









New contributor




SoptikHa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 2





    The command is correct. Encrypt with: gpg --symmetric filename, decrypt with gpg --decrypt filename.gpg. What does your script look like? What command do you use to decrypt it?

    – Deathkamp Drone
    2 days ago











  • What was the exact error? It sounds like the password was correct, but something else went wrong? If you don't specify a good --cipher-algo or use --force-mdc you might default to not having any modification detection code. Are you sure the file was transferred unchanged? And +1 to DeathkampDrone's comments too

    – Xen2050
    yesterday












  • Okay, I was able to decrypt it and I can access the files, but I'm not sure if the backup is complete. While decrypting: "gpg: problem reading source (xxx bytes remaining) gpg: handle plaintext failed: No such file or directory gpg: decryption failed: Invalid packet". I'll verify if hash of the uploaded/downloaded file matches. I didn't specify any of these options, it defaulted to AES. Cc @Deathkamp Drone : I used the commands that you wrote.

    – SoptikHa
    yesterday














1












1








1








Recently, I made a script that archives important files with gzip,

encrypts them with gpg, using
gpg --symmetric

(which prompts me for a password), then

uploads it.



I was testing the backup on another PC, but cannot decrypt it, even when I supplied the correct password (copy& pasted from password manager). There was an error about half a second after and it failed with an invalid packet error.



How can I encrypt that file, so anyone with the proper password can decrypt it? I don't want to share keyrings as I've read elsewhere unless absolutely necessary, as it's another thing I need to think of and distribute and sync between my machines, including future ones. I would like to decrypt it with just a password.










share|improve this question









New contributor




SoptikHa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












Recently, I made a script that archives important files with gzip,

encrypts them with gpg, using
gpg --symmetric

(which prompts me for a password), then

uploads it.



I was testing the backup on another PC, but cannot decrypt it, even when I supplied the correct password (copy& pasted from password manager). There was an error about half a second after and it failed with an invalid packet error.



How can I encrypt that file, so anyone with the proper password can decrypt it? I don't want to share keyrings as I've read elsewhere unless absolutely necessary, as it's another thing I need to think of and distribute and sync between my machines, including future ones. I would like to decrypt it with just a password.







backup encryption gpg






share|improve this question









New contributor




SoptikHa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




SoptikHa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago









Ouki

3,90421527




3,90421527






New contributor




SoptikHa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Apr 4 at 22:18









SoptikHaSoptikHa

62




62




New contributor




SoptikHa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





SoptikHa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






SoptikHa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 2





    The command is correct. Encrypt with: gpg --symmetric filename, decrypt with gpg --decrypt filename.gpg. What does your script look like? What command do you use to decrypt it?

    – Deathkamp Drone
    2 days ago











  • What was the exact error? It sounds like the password was correct, but something else went wrong? If you don't specify a good --cipher-algo or use --force-mdc you might default to not having any modification detection code. Are you sure the file was transferred unchanged? And +1 to DeathkampDrone's comments too

    – Xen2050
    yesterday












  • Okay, I was able to decrypt it and I can access the files, but I'm not sure if the backup is complete. While decrypting: "gpg: problem reading source (xxx bytes remaining) gpg: handle plaintext failed: No such file or directory gpg: decryption failed: Invalid packet". I'll verify if hash of the uploaded/downloaded file matches. I didn't specify any of these options, it defaulted to AES. Cc @Deathkamp Drone : I used the commands that you wrote.

    – SoptikHa
    yesterday













  • 2





    The command is correct. Encrypt with: gpg --symmetric filename, decrypt with gpg --decrypt filename.gpg. What does your script look like? What command do you use to decrypt it?

    – Deathkamp Drone
    2 days ago











  • What was the exact error? It sounds like the password was correct, but something else went wrong? If you don't specify a good --cipher-algo or use --force-mdc you might default to not having any modification detection code. Are you sure the file was transferred unchanged? And +1 to DeathkampDrone's comments too

    – Xen2050
    yesterday












  • Okay, I was able to decrypt it and I can access the files, but I'm not sure if the backup is complete. While decrypting: "gpg: problem reading source (xxx bytes remaining) gpg: handle plaintext failed: No such file or directory gpg: decryption failed: Invalid packet". I'll verify if hash of the uploaded/downloaded file matches. I didn't specify any of these options, it defaulted to AES. Cc @Deathkamp Drone : I used the commands that you wrote.

    – SoptikHa
    yesterday








2




2





The command is correct. Encrypt with: gpg --symmetric filename, decrypt with gpg --decrypt filename.gpg. What does your script look like? What command do you use to decrypt it?

– Deathkamp Drone
2 days ago





The command is correct. Encrypt with: gpg --symmetric filename, decrypt with gpg --decrypt filename.gpg. What does your script look like? What command do you use to decrypt it?

– Deathkamp Drone
2 days ago













What was the exact error? It sounds like the password was correct, but something else went wrong? If you don't specify a good --cipher-algo or use --force-mdc you might default to not having any modification detection code. Are you sure the file was transferred unchanged? And +1 to DeathkampDrone's comments too

– Xen2050
yesterday






What was the exact error? It sounds like the password was correct, but something else went wrong? If you don't specify a good --cipher-algo or use --force-mdc you might default to not having any modification detection code. Are you sure the file was transferred unchanged? And +1 to DeathkampDrone's comments too

– Xen2050
yesterday














Okay, I was able to decrypt it and I can access the files, but I'm not sure if the backup is complete. While decrypting: "gpg: problem reading source (xxx bytes remaining) gpg: handle plaintext failed: No such file or directory gpg: decryption failed: Invalid packet". I'll verify if hash of the uploaded/downloaded file matches. I didn't specify any of these options, it defaulted to AES. Cc @Deathkamp Drone : I used the commands that you wrote.

– SoptikHa
yesterday






Okay, I was able to decrypt it and I can access the files, but I'm not sure if the backup is complete. While decrypting: "gpg: problem reading source (xxx bytes remaining) gpg: handle plaintext failed: No such file or directory gpg: decryption failed: Invalid packet". I'll verify if hash of the uploaded/downloaded file matches. I didn't specify any of these options, it defaulted to AES. Cc @Deathkamp Drone : I used the commands that you wrote.

– SoptikHa
yesterday











0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






SoptikHa is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510595%2fhow-to-create-password-encrypted-backup-with-gpg%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








SoptikHa is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















SoptikHa is a new contributor. Be nice, and check out our Code of Conduct.












SoptikHa is a new contributor. Be nice, and check out our Code of Conduct.











SoptikHa is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510595%2fhow-to-create-password-encrypted-backup-with-gpg%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.