Skip to content

copy cmd. not recognising password2 #96

@chymian

Description

@chymian

version 16.01.

after manually initialization of repo 2 with the --copy-chunker-params, the following copy cmd of a repo does not work:

resticprofile --name=home copy 
2022/03/04 09:25:03 profile 'home': initializing repository (if not existing)
2022/03/04 09:25:03 starting command: /usr/bin/restic init --option rclone.program=/usr/bin/rclone --option rclone.args=serve\ restic\ --stdio\ --transfers\ 10\ --verbose --password-file key --repo /dpool/backup/restic/sagar/home   
2022/03/04 09:25:03 profile 'home': starting 'copy'
2022/03/04 09:25:03 starting command: /usr/bin/restic copy --option rclone.program=/usr/bin/rclone --option rclone.args=serve\ restic\ --stdio\ --transfers\ 10\ --verbose --password-file key --password-file2 key --repo /dpool/backup/restic/sagar/home --repo2 rclone:s3:/sagar/restic//home                                                            
repository 92c570cd opened successfully, password is correct
rclone: 2022/03/04 09:25:10 NOTICE: S3 bucket sagar path restic//home: Odd name received "restic/home/keys/8457008b6c6e88ad02793634a8a0c3b6afc5f9c94324e75d72a370ae0a82b1f1"
Fatal: wrong password or no key found
2022/03/04 09:25:10 starting 'run-after-fail' profile command 1/1
2022/03/04 09:25:10 copy on profile 'home': exit status 1

Manually resorting the parameters to the following works:

$ restic  --option rclone.program=/usr/bin/rclone --option rclone.args="serve restic --stdio --transfers 10 --verbose" --password-file key --repo /dpool/backup/restic/sagar/home copy --repo2 rclone:s3:/sagar/restic/home  --password-file2 key
repository 92c570cd opened successfully, password is correct
repository 79e3bbb9 opened successfully, password is correct
…

another question

is there a way to automatically let resticprofile initialize the copy target-repo with the --copy-chunkers-params flag?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions