{"id":1272,"date":"2018-11-10T09:44:25","date_gmt":"2018-11-10T15:44:25","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=1272"},"modified":"2018-11-10T09:44:25","modified_gmt":"2018-11-10T15:44:25","slug":"restic-and-oracle-oci-object-storage","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/restic-and-oracle-oci-object-storage\/","title":{"rendered":"Restic and Oracle OCI Object Storage"},"content":{"rendered":"
It seems that after some time went by the S3 compatible object storage OCI interface can now work with restic directly and not necessary to use rclone. Tests a few months ago this did not work.<\/p>\n
Using S3 directly mean we may not have this issue we see when using restic + rclone:
\nrclone: 2018\/11\/02 20:04:16 ERROR : data\/fa\/fadbb4f1d9172a4ecb591ddf5677b0889c16a8b98e5e3329d63aa152e235602e: Didn't finish writing GET request (wrote 9086\/15280 bytes): http2: stream closed<\/p>\n
This shows how I setup restic to Oracle OCI object storage(no rclone required). <\/p>\n
Current restic env pointing to rclone.conf
\n##########################################<\/p>\n
\r\n# more \/root\/.restic-env \r\nexport RESTIC_REPOSITORY="rclone:s3_servers_ashburn:bucket1"\r\nexport RESTIC_PASSWORD="blahblah"\r\n\r\n# more \/root\/.config\/rclone\/rclone.conf \r\n[s3_servers_phoenix]\r\ntype = s3\r\nenv_auth = false\r\naccess_key_id = \r\nsecret_access_key = \r\nregion = us-phoenix-1\r\nendpoint = <client-id>.compat.objectstorage.us-phoenix-1.oraclecloud.com\r\nlocation_constraint = \r\nacl = private\r\nserver_side_encryption = \r\nstorage_class = \r\n[s3_servers_ashburn]\r\ntype = s3\r\nenv_auth = false\r\naccess_key_id = \r\nsecret_access_key = \r\nregion = us-ashburn-1\r\nendpoint = <client-id>.compat.objectstorage.us-ashburn-1.oraclecloud.com\r\nlocation_constraint =\r\nacl = private\r\nserver_side_encryption =\r\n<\/pre>\nNew restic env pointing to S3 style
\n###################################<\/p>\n\r\n# more \/root\/.restic-env \r\nexport AWS_ACCESS_KEY_ID=\r\nexport AWS_SECRET_ACCESS_KEY=\r\nexport RESTIC_REPOSITORY="s3:<client-id>.compat.objectstorage.us-ashburn-1.oraclecloud.com\/bucket1"\r\nexport RESTIC_PASSWORD="blahblah"\r\n\r\n# . \/root\/.restic-env\r\n\r\n# \/usr\/local\/bin\/restic snapshots\r\nrepository 26e5f447 opened successfully, password is correct\r\nID Date Host Tags Directory\r\n----------------------------------------------------------------------\r\ndc9827fd 2018-08-31 21:20:02 server1 \/etc\r\ncb311517 2018-08-31 21:20:04 server1 \/home\r\nf65a3bb5 2018-08-31 21:20:06 server1 \/var\r\n{...}\r\n----------------------------------------------------------------------\r\n36 snapshots\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"It seems that after some time went by the S3 compatible object storage OCI interface can now work with restic<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[87,96,99],"tags":[],"class_list":["post-1272","post","type-post","status-publish","format-standard","hentry","category-oci","category-rclone","category-restic"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=1272"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1272\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=1272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=1272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=1272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}