How to back up data directly to Amazon s3 without storing a copy of the dump on the server?
I have an idea - to use the s3 driver for the storage mount on the server and make backup there, but the customer wants more options.
How to back up data directly to Amazon s3 without storing a copy of the dump on the server?
I have an idea - to use the s3 driver for the storage mount on the server and make backup there, but the customer wants more options.
According to the documentation , when sending files, you can use stdin as the source:
$ aws s3 cp - s3://mybucket/stream.txt
that is, in the appendix to your case:
$ программа-формирующая-поток-данных | aws s3 cp - s3://mybucket/stream.txt
Another possibility: without using any add-ons, access the server directly using the https protocol. Here is an example script.
Source: https://ru.stackoverflow.com/questions/501222/
All Articles