s3sb

Crates.ios3sb
lib.rss3sb
version0.1.1
sourcesrc
created_at2022-03-25 15:34:38.57882
updated_at2022-03-25 17:11:42.02454
descriptionStore data streams on S3 keeping a number of lates backups
homepagehttps://sr.ht/~jpastuszek/s3sb/
repositoryhttps://git.sr.ht/~jpastuszek/s3sb
max_upload_size
id556297
size99,313
Jakub Pastuszek (jpastuszek)

documentation

README

Latest Version License

S3 Stream Backup

Store data streams on S3 keeping a number of lates backups.

Features:

  • Backup standard input data to timestamped S3 objects.
  • Keep constant number of backups.
  • List and restore backups to standard output.

Example usage

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
Commit count: 0

cargo fmt