Hi there,
i am in the process to move my backups from ‘S3’ to ‘sftp’ via
restic copy
i got it all running, but according to the docs,i had to set up the VARIABLES like this:
#source (the s3 instance)
export AWS_ACCESS_KEY_ID=<xxx_id>
export AWS_SECRET_ACCESS_KEY=<xxx_key>
export RESTIC_FROM_PASSWORD=<xxx_password>
export RESTIC_FROM_REPOSITORY=<xxx_repo>
##destination (the sftp instance)
export RESTIC_REPOSITORY=<yyy_repo>
export RESTIC_PASSWORD=<yyy_password>
what puzzled me most was that there was e.g. only one AWS_ACCESS_KEY_ID , in the docs was no FROM_AWS_ACCESS_KEY_ID .
So i hoped that the AWS credentials would work in my setting. I tried and it worked. So everything is fine for me.
But i wonder if it wouldn’t be better to use a syntax like:
FROM_AWS_SECRET_ACCESS_KEY
FROM_AWS_ACCESS_KEY_ID
Just like the RESTIC_PASSWORD became RESTIC_FROM_PASSWORD in the copy command.
That way it would cause less irritations (at least for a infrequent user of this option.)
AND it would be possible to implement a “restic S3 to S3 copy” , which i suppose does not work atm, because there is no way to set up two diffent S3 credentials.