Crates.io | s3sb |
lib.rs | s3sb |
version | 0.1.1 |
source | src |
created_at | 2022-03-25 15:34:38.57882 |
updated_at | 2022-03-25 17:11:42.02454 |
description | Store data streams on S3 keeping a number of lates backups |
homepage | https://sr.ht/~jpastuszek/s3sb/ |
repository | https://git.sr.ht/~jpastuszek/s3sb |
max_upload_size | |
id | 556297 |
size | 99,313 |
Store data streams on S3 keeping a number of lates backups.
Features:
Note: You need to set up AWS credentials and default region using ~/.aws/credentials
and ~/.aws/config
files or use enviornment variables (AWS_DEFAULT_REGION
, AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
) or use instance profile (on EC2). Consulte AWS documentation for details. Additionally options --aws-region
and --aws-region-endpoint
can be specifed on the command line.
# backup PostgreSQL to S3
su - postgres -c pg_dumpall | xz | s3sb -v mybucket backups/postgress make 2 xz
# restore from S3 backup
s3sb -v mybucket backups/postgress restore | xz -d | su - postgres -c psql