AWS: Script to Backup server data to S3 Bucket using Command Line tool



Script to automate backups using a Windows command line tools with backups and sync using S3.EXE


Command in the .bat file

s3 put mybucket/pictures/ c:\mypictures\  /sub /sync /key:asdkfaksdfk secret:ASDFASDFASDFASDFA

Explanation:

S3: command.

Put: will  copy the files from our server to s3

mybucket/pictures : is the location of the s3 bucket with folder path

c:\mypictures: local path from where the files is to be copied to S3

/sub: copies an entire directory hierarchy

/sync : only uploads files that do not exist on S3 or have been modified  since last being uploaded.

Key: is the private key for u r S3 bucket.

Secret: is the secret code for the S3 bucket given.

You can schedule the .bat file on windows task manager which we have written using the command

Note: Change your Bucket Name, location, key and secret key and also change local path


Download link for S3.EXE :


Keywords: AWS, S3, Backups. Data backup, S3 Bucket

Comments

Popular posts from this blog

Observium: Configuring Microsoft Windows 2008 Server SNMP Agent

AWS: Upgrade PV Drivers on Windows Instances

How to configure Incremental backups for MSSQL Database