Swimlane Platform Installer Gu...
Troubleshooting Guide
How to Install and Use the restic CLI
4 min
sometimes access to restic restore objects is needed to troubleshoot why an spi instance snapshot failed to restore to manipulate restic restore objects, it is necessary to install the restic cli into the swimlane tools pod download the current restic cli download restic 0 10 0 from github (the version will change as time passes) in a browser, navigate to https //github com/restic/restic/releases/v0 10 0 and download restic 0 10 0 linux amd64 bz2 use bzip2 to uncompress restic bzip2 d restic 0 10 0 linux amd64 bz2 copy the restic cli binary into the swimlane tools pod kubectl cp restic 0 10 0 linux amd64 swimlane tools 0 /tmp get the values for environment variables that must be created in the swimlane tools pod (aws access key id, aws secret access key and restic password) \# get the value for aws access key id kubectl get secret n default kotsadm fs minio creds o jsonpath="{ data minio access key}" | base64 d \# get the value for aws secret access key kubectl get secret n default kotsadm fs minio creds o jsonpath="{ data minio secret key}" | base64 d \# get the value for restic password kubectl get secrets n velero velero restic credentials o jsonpath="{ data repository password}" | base64 d exec into the swimlane tools pod and set the aws environment variables kubect exec it swimlane tools 0 bash export aws access key id=\<value above> export aws secret access key=\<value above> export restic password=\<value above> execute restic commands (still in the swimlane tools pod) /tmp/restic 0 14 0 linux amd64 list snapshots r 's3\ http //kotsadm fs minio default 9000/velero/restic/default' repository 15049d8e opened (repository version 2) successfully, password is correct created new cache in /root/ cache/restic 6b98083019de01590d6fa12ba46ed4bb46c7c7ee8bcc3192128041c851667d70 768e57bdfb53c7e5a3e3c282f68bf9cab83159bb051f47c492053903f6b7ae19 80d918b1f28835eba6e1c955286c19c19b81a28f33a72eb0e0d4b49447c68833 8189de2cfb080be3063b4a52966099526ed143fbda1d03a6092f2c732703dad6 825bfd64bddd769645485662dff836999bf7bd86a7f20da8994e38cb573e8e01 d4035bcfff85355fdb0f16fc32ea8ad38d1bbe4a87fe2ef6e8b172e9f9650368