Re: Running from script - quotes being ignored?

Andy Hairston via Duplicity-talk <[email protected]>
Newsgroups gmane.comp.sysutils.backup.duplicity.general
Message-ID <CA+q0mAf3A+WzDF2Xtu0bc8R2Ejh=-MBU6SPKwZD9aHs5HZkOSA@mail.gmail.com>
Not sure why I didn't get Edgar's replies as separate messages, but that
works! Oddly, only if the "$GPG_OPTS" is in the final call, not
incorporated into a previous variable, but it works. Thank you!


> btw. much easier of course would be to rethink your variable structure,
notice the "" around $GPG_OPTS to keep it together as one parameter (no
need for `export` btw.)
>
> B2BUCKET=[snip]
> DUPLICITY_CMD="pipx run duplicity"
> GPG_OPTS="--gpg-options='--compress-algo=bzip2 --bzip2-compress-level=9'"
> $DUPLICITY_CMD backup "$GPG_OPTS" /home/[snip] ${B2BUCKET}

-- 

Andy Hairston

_______________________________________________
Duplicity-talk mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.