Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
hahagood
V2EX  ›  Linux

gpgtar 有没有办法可以不手动输入解压密码?

  •  
  •   hahagood · Jul 26, 2022 · 2172 views
    This topic created in 1387 days ago, the information mentioned may be changed or developed.

    用 gpgtar 加密压缩了一个目录, 作为数据的备份.

    现在有个问题: 每次解密还原的时候, 都要手动输入一次密钥的口令, 没办法用脚本自动化.

    有没有办法象 gpg 那样, 通过一个文件来传送密码的?

    看到 gpgtar 有个参数是 --gpg-args, 不知道是干什么用的.

    1 replies    2022-08-04 20:15:50 +08:00
    7RTDKSAK
        1
    7RTDKSAK  
       Aug 4, 2022
    --passphrase 123456
    --batch
    --pinentry-mode loopback
    这仨缺一不可
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3229 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 12:51 · PVG 20:51 · LAX 05:51 · JFK 08:51
    ♥ Do have faith in what you're doing.