- PVSM.RU - https://www.pvsm.ru -
Я давно знаком с утилитой s3cmd, но всегда использовал её только под Linux системами. О том, что её можно использовать под Windows, я даже не думал.
А почему бы и нет? Она реализована на python, а значит вполне кроссплатформенна. Нужно только установить Python на Windows машину.
Итак:
C:UsersOleksandr_Molchanov>python
Python 2.6 (r26:66721, Oct 2 2008, 11:06:43) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
c:s3cmd>python s3cmd --configure
Enter new values or accept defaults in brackets with Enter.
Refer to user manual for detailed description of all options.
Access key and Secret key are your identifiers for Amazon S3
Access Key : ######################
Secret Key : ######################
Encryption password is used to protect your files from reading
by unauthorized persons while in transfer to S3
Encryption password:
Path to GPG program [None]:
When using secure HTTPS protocol all communication with Amazon S3
servers is protected from 3rd party eavesdropping. This method is
slower than plain HTTP and can't be used if you're behind a proxy
Use HTTPS protocol [No]:
On some networks all internet access must go through a HTTP proxy.
Try setting it here if you can't conect to S3 directly
HTTP Proxy server name:
New settings:
Access Key: #######################
Secret Key: ######################
Encryption password:
Path to GPG program: None
Use HTTPS protocol: False
HTTP Proxy server name:
HTTP Proxy server port: 0
Test access with supplied credentials? [Y/n] Y
Please wait, attempting to list all buckets...
Success. Your access key and secret key worked fine :-)
Now verifying that encryption works...
Not configured. Never mind.
Save settings? [y/N] y
Configuration saved to 'C:UsersOleksandr_MolchanovApplication Datas3cmd.ini'
c:s3cmd>python s3cmd mb s3://molchanov
Bucket 's3://molchanov/' created
c:s3cmd>python s3cmd ls
2013-05-27 12:39 s3://molchanov
Настройка оказалась довольно простой и быстрой.
Теперь можно этот обретённый функционал обернуть в bat-скрипт, который будет, например, архивировать нужные данные и аккуратненько складывать на S3.
Вызов этого или подобного скрипта можно добавить в планировщик заданий и таким образом организовать резервное копирование данных.
Автор: camec
Источник [3]
Сайт-источник PVSM.RU: https://www.pvsm.ru
Путь до страницы источника: https://www.pvsm.ru/windows/35325
Ссылки в тексте:
[1] отсюда: http://www.python.org/ftp/python/
[2] отсюда: http://sourceforge.net/projects/s3tools/
[3] Источник: http://habrahabr.ru/post/181111/
Нажмите здесь для печати.