📜 ⬆️ ⬇️

Using S3cmd in Windows


I have long been familiar with the s3cmd utility, but I always used it only under Linux systems. The fact that it can be used under Windows, I did not even think.
Why not? It is implemented in python, which means it is completely cross-platform. You just need to install Python on your Windows machine.

So:

Setup was pretty simple and quick.
Now you can wrap this acquired functionality in a bat-script, which will, for example, archive the necessary data and neatly add to S3.
An example of a simple script:
"C: \ Program Files \ 7-Zip \ 7z.exe" a -t7z d: \% date% .7zip d: \ data1
python C: \ s3cmd \ s3cmd put D: \% date% .7zip s3: // molchanov /


Calling this or a similar script can be added to the task scheduler and thus backing up the data.

')

Source: https://habr.com/ru/post/181111/


All Articles