Announcement

Collapse
No announcement yet.

piping gpg into tar, issues in 18.04

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] piping gpg into tar, issues in 18.04

    I used to make encrypted backups of folders on my computer onto my external hard drive using the following command. I understand that it pipes gpg into tar, but I wouldn't be able to give a decent explanation of how it works.

    Code:
    tar zcf   -   /directory/to/backup  | gpg -c >  path/to/external_hard_drive/fileName.tar.gz.gpg
    I would then enter a password for gpg to use, and then let it run. This worked fine in 14.04, but I recently upgraded to 18.04 and the command does not work anymore. It now returns the following error message. Any help would be appreciated. Thanks!

    tar: Removing leading `/' from member names
    gpg: problem with the agent: Inappropriate ioctl for device
    gpg: error creating passphrase: Operation cancelled
    gpg: symmetric encryption of '[stdin]' failed: Operation cancelled
    tar: -: Wrote only 2048 of 10240 bytes
    tar: Child returned status 141
    tar: Error is not recoverable: exiting now
    I run Kubuntu 18.04 LTS.

    #2
    I realized my issue--I was trying to use gpg as root. While Kubuntu 14.04 allowed this, apparently Kubuntu 18.04 does not. After recursively chowning my external hard drive, I can now back up to it using gpg and tar on a non-root account.
    I run Kubuntu 18.04 LTS.

    Comment

    Working...
    X