Re: duplicity: error: no such option: --exclude /proc

Jeffrey Walton via Duplicity-talk <[email protected]>
Newsgroups gmane.comp.sysutils.backup.duplicity.general
Message-ID <CAH8yC8nqtBj7fiwcNNT49Z6-KUrecsEcu_hWb_GfehkhGOY=gQ@mail.gmail.com>
On Wed, Feb 5, 2025 at 9:35 AM Reto via Duplicity-talk
<[email protected]> wrote:
>
> Hi,
>
> On 05.02.25 10:02, Jeffrey Walton via Duplicity-talk wrote:
> >
> >    Usage:
> >      duplicity [full|incremental] [options] source_dir target_url
> >      duplicity [restore] [options] source_url target_dir
> >       ...
> >      duplicity: error: no such option: --exclude /proc
>
> Did by any chance the Bash version change?
>
> Also your Bash array looks suspicious:
>
> exclude_opts+=("--exclude /proc")
>
> In line 162 and following:
> https://github.com/weidai11/website/blob/master/systemd/bitvise-backup#L162
>
> What I think is happening is that the argument is given as:
> '--exclude /proc'
>
> Also with the space in between. And there is no such option
> '--exclude /proc'
>
> Try to change you array to:
> exclude_opts+=(--exclude /proc)
>
> Also without the quotes.
>
> And as others mentioned, it would be good to know what the actual
> command was, so add a 'set -x' in line 183 in case further debugging is
> needed.

Yeah, I think you are right.

I'll turn some knobs tonight once I get off work.

Jeff

_______________________________________________
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.