On Mon, May 18, 2020 at 06:24:53PM +0200, Stefan G. Weichinger wrote: > Am 16.05.20 um 19:28 schrieb Jose M Calhariz: > > > > Hi, > > > > I have start to use amgpgcrypt to do some backups to S3. I found > > some problems and needed to adjust the perl script. Anyone else using > > it to share ideas? > > Unfortunately I haven't yet used it. But feel free to start the > discussion anyway ... maybe we get some ideas and suggestions here. >
To me for the amgpgcrypt to work I disabled in the script the lauch of
gpg-agent, after everything seams to work. I think this is a problem
with my personal setup and not a bug with amgpgcrpt.
Follow the diff with my changes:
--- /usr/sbin/amgpgcrypt 2019-04-17 14:11:15.000000000 +0100
+++ /usr/local/sbin/amgpgcrypt2 2020-05-16 17:11:44.830076773 +0100
@@ -72,14 +72,14 @@
sub encrypt() {
my $gpg_agent_cmd = do_gpg_agent();
my $gpg = which_gpg();
- system "$gpg_agent_cmd $gpg --batch --disable-mdc --encrypt --cipher-algo
AES256 --recipient $AMANDA";
+ system "$gpg --batch --disable-mdc --encrypt --cipher-algo AES256
--recipient $AMANDA";
sleep(2); # allow gpg-agent the time to exit
}
sub decrypt() {
my $gpg_agent_cmd = do_gpg_agent();
my $gpg = which_gpg();
- system "$gpg_agent_cmd $gpg --batch --quiet --no-mdc-warning
--secret-keyring $AM_PRIV --decrypt --passphrase-fd 3 3<$AM_PASS";
+ system "$gpg --batch --quiet --no-mdc-warning --secret-keyring $AM_PRIV
--decrypt --passphrase-fd 3 3<$AM_PASS";
sleep(2); # allow gpg-agent the time to exit
}
Kind regards
Jose M Calhariz
--
--
Mulheres têm de ter passado, e homens futuro
--Alice Carta
signature.asc
Description: PGP signature
