restic with SeaweedFS
Robert Ames edited this page Feb 24, 2024
·
3 revisions
On mac: brew install restic
Set the AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
environment variables in both your weed
environment as well as your restic
environment.
The key values do not matter but they must be provided, as restic
expects (and effectively requires) non-anonymous access when communicating with an S3 bucket.
This may involve configuring your weed
server similar to the following:
export AWS_ACCESS_KEY_ID="any-key-id"
export AWS_SECRET_ACCESS_KEY="any-access-key"
export WEED_S3_CONFIGURE_CMD="s3.configure \
-access_key \"$AWS_ACCESS_KEY_ID\" \
-secret_key \"$AWS_SECRET_ACCESS_KEY\" \
-user iam \
-actions Admin \
-apply"
echo "$WEED_S3_CONFIGURE_CMD" | weed shell
See: https://github.com/seaweedfs/seaweedfs/wiki/s3cmd-with-SeaweedFS
First, create the bucket:
s3cmd mb s3://resticbucket
Then, initialize the restic bucket and backup to it:
$ export AWS_ACCESS_KEY_ID="any-key-id"
$ export AWS_SECRET_ACCESS_KEY="any-access-key"
$ restic -r s3:http://localhost:8333/resticbucket init
$ restic -r s3:http://localhost:8333/resticbucket backup /Users/chris/dev/gopath/bin/
open repository
enter password for repository:
repository 47edd0a2 opened successfully, password is correct
created new cache in /Users/chris/Library/Caches/restic
Files: 71 new, 0 changed, 0 unmodified
Dirs: 4 new, 0 changed, 0 unmodified
Added to the repo: 805.611 MiB
processed 71 files, 807.721 MiB in 0:05
snapshot 7436ec41 saved
- Replication
- Store file with a Time To Live
- Failover Master Server
- Erasure coding for warm storage
- Server Startup Setup
- Environment Variables
- Filer Setup
- Directories and Files
- Data Structure for Large Files
- Filer Data Encryption
- Filer Commands and Operations
- Filer JWT Use
- Filer Cassandra Setup
- Filer Redis Setup
- Super Large Directories
- Path-Specific Filer Store
- Choosing a Filer Store
- Customize Filer Store
- Migrate to Filer Store
- Add New Filer Store
- Filer Store Replication
- Filer Active Active cross cluster continuous synchronization
- Filer as a Key-Large-Value Store
- Path Specific Configuration
- Filer Change Data Capture
- Cloud Drive Benefits
- Cloud Drive Architecture
- Configure Remote Storage
- Mount Remote Storage
- Cache Remote Storage
- Cloud Drive Quick Setup
- Gateway to Remote Object Storage
- Amazon S3 API
- AWS CLI with SeaweedFS
- s3cmd with SeaweedFS
- rclone with SeaweedFS
- restic with SeaweedFS
- nodejs with Seaweed S3
- S3 API Benchmark
- S3 API FAQ
- S3 Bucket Quota
- S3 API Audit log
- S3 Nginx Proxy
- Hadoop Compatible File System
- run Spark on SeaweedFS
- run HBase on SeaweedFS
- run Presto on SeaweedFS
- Hadoop Benchmark
- HDFS via S3 connector
- Async Replication to another Filer [Deprecated]
- Async Backup
- Async Filer Metadata Backup
- Async Replication to Cloud [Deprecated]
- Kubernetes Backups and Recovery with K8up