CLI backup to AWS S3

3 posts / 0 new
Last post
#1 Wed, 09/23/2015 - 23:02
cerebrum

CLI backup to AWS S3

The following bash command fails:

# virtualmin backup-domain --domain example.com \
  --dest s3://XXXXX@YYYYY/backups/20150924/example.com.tar.gz \
  --all-features --ignore-errors --strftime --no-incremental --all-virtualmin

...where "XXXXX" is my AWS access key and "YYYYY" the access secret.

virtualmin reports:

Failed to open /usr/share/webmin/virtual-server/s3://XXXXX@YYYYY/backups/20150924/example.com.tar.gz for writing : No such file or directory at ../web-lib-funcs.pl line 1397.

Did I miss anything?

Thanks, Cerebrum

virtualmin-base version 1.0-36.1 on Debian GNU/Linux 7.x

Thu, 09/24/2015 - 00:58
cerebrum

My fault - please ignore my question :-)

Syntax should be:

--dest s3://XXXXX:YYYYY@backups/20150924/example.com.tar.gz

...rather than:

--dest s3://XXXXX@YYYYY/backups/20150924/example.com.tar.gz
Thu, 09/24/2015 - 10:48
andreychek

Great, I'm glad you got this working!

-Eric

Topic locked