· 5 years ago · Sep 22, 2020, 09:10 AM
1@echo off
2set access_key=ABC
3set secret_key=XYZ
4set bucket=cuongtq
5set backup_path=C:\Backup\Full\AdventureWorks2012
6set dest_path=%bucket%
7cd\Program Files\S3Express
8cd
9# S3 sẽ gọi đến file upload_s3.txt để thực thi upload.
10S3Express "exec \"c:\upload_s3.txt\""
11#
12saveauth <*access_key*> <*secret_key*>
13put <*backup_path*>\*.bak <*dest_path*>/full/ -onlynew
14pause 5s
15rmauth <all>
16exit