Microsoft Windows has a built in task scheduler. It allows you to automatically run a program at a certain time. Task scheduler is great for automating backups. You can configure a task to send files to Amazon S3 using SprightlySoft S3 Sync. The following article will take you step by step through the process of creating a scheduled task to automatically upload files Amazon S3.

First run the S3 Sync Command-Line Wizard to build a S3 Sync command line. Enter your parameters of which folder you want to upload and which S3 bucket you want to save files to. When all your parameters are entered you will arrive at the Command-Line tab in the wizard. This screen allows you to save the command line to a batch file. Click the Save Command-Line button.

Cmmand-Line Save
In the Save As dialogue box enter a name for your batch file.

Save Batch File
Now that your batch file is saved you can double click it to run the command-line. This makes it easier to run S3 Sync. However in some situations you may want to run the command-line often and you do not want to click the batch file each time. This is where Windows Task Scheduler comes in handy. You can create a task to run the batch file once an hour. The following shows how to create a scheduled task.

In Windows go to the Control Panel. Under System and Security you will see Administrative Tools. Click it to see the administrative tools.

Control Panel Administrative Tools
Under Administrative Tools click Task Scheduler.

Control Panel Task Scheduler
The Task Scheduler screen will open up. Right click in the main area and click Create New Task.

Create New Task
Enter a name for your scheduled task. You will need to select the user the task runs under. It can be your account or another account. It’s best to select “Run whether user is logged on or not” so the task will run even if the user is not logged in. Click OK when you are complete.

Create Task General
In the Create Task screen click on the Triggers tab and click the New button.

Create Task Triggers
On the New Trigger screen select how often the task will run. In the example below the trigger is set to run once an hour. You can choose different settings for your task if you’d like.

New Trigger
When you are finished with your trigger go to the Actions tab on the Create Task screen. Click the New button.

Create Task Actions
Under Program/script select the batch file you created earlier. Click the OK button when complete.

New Action
The settings for your new task are now entered. Click the OK button to create the task. You may be prompted to enter the password of the user the task runs under. Enter the password to continue.

Save Task
You will now see the task in the Task Scheduler. To confirm the task is configured correctly right click on it and click Run. The Task Schuler will execute the batch file which will run S3 Sync with your settings. View the S3 Sync log to make sure S3 Sync ran correctly.

Run Task
With the scheduled task configured you can relax and know your files will automatically be backed up to Amazon S3.

{ Comments on this entry are closed }

How to use Amazon Glacier in S3

by Anton on February 24, 2014

Amazon Glacier is a service that allows you to archive your files on Amazon’s cloud infrastructure. It is designed for large files that are accessed infrequently such as video and picture backups.

The main advantage of Glacier is the price. It costs $1 for 100 GB of storage space per month. This is 88% cheaper than the cost of standard storage on S3 and 85% cheaper than reduced redundancy storage on S3.

The main drawback to Glacier is that your files are not immediately available on request. It take 3 – 5 hours between the time you initiate a download request, and the time a file is made available for download.

There a 2 ways to take advantage of Amazon Glacier; you can use the Amazon Glacier service or you can use the Glacier storage class in Amazon S3. SprightlySoft recommends that you use the Glacier storage class in Amazon S3 for the following reasons:

  • When using the Glacier storage class in S3 you can use the S3 web management console to view and manage files. The Amazon Glacier service does not have a web interface and it’s more difficult to list and manage files.
  • It takes a long time to list files with the Amazon Glacier service. You list files by initiating an inventory job. This job takes up to 24 hours to complete. With S3 you can list files immediately even if they are in the Glacier storage class.
  • Files stored in S3 using the Glacier storage class can be managed by any application that works with S3 and the Glacier storage class. When you store files in the Amazon Glacier service there is no standard way to store information such as file name. Each application that stores information stores it differently and this causes compatibility issues between applications.

To read more about using S3 and the Glacier storage class see http://aws.amazon.com/s3/faqs/.

To use the Glacier storage class in S3 you configure a lifecycle rule that moves files to the Glacier storage class. The easiest way to configure this rule is through the S3 management console. The following describes how to do this.

Enter the bucket where you want to use the Glacier storage class and click the Properties button.
GlacierStorageClass-1

Click the Lifecycle option.
GlacierStorageClass-2

Click the Add rule button.
GlacierStorageClass-3

In the Lifecycle Rule dialog click the Apply to Entire Bucket checkbox to make this rule apply to all files in the bucket. Next click the Move to Glacier button to get the Glacier options. In the Time Period field enter 0 to make files immediately go to the Glacier storage class. Click the Save button to apply the rule to your bucket.
GlacierStorageClass-4

You now have a lifecycle rule that pushes files to the Glacier storage class. Don’t worry if files stay in their previous storage class for a while. It may take up to a day for the files to be moved over and for the new storage class to be displayed in the web management console.

You can use SprightlySoft S3 Sync to upload files to a bucket with a Glacier lifecycle rule and to download files from the Glacier storage class. When S3 Sync encounters a file in the Glacier storage class it will make a request to retrieve the file. S3 Sync will wait until the file is available and when it is ready, it will be downloaded.

Give it a try today and reduce your S3 storage costs by using the Glacier storage class.

{ Comments on this entry are closed }

Restricting an IAM User to a Sub Folder in Amazon S3

September 13, 2013

Do you want to use multiple IAM users with a single S3 bucket but don’t want the users to access each other’s files? You can craft a S3 bucket policy to limit a user to a specific S3 sub folder. The following will show you how to create a bucket policy and use SprightlySoft S3 […]

Read the full article →

S3 Sync v4 Supports Restore from Glacier

January 24, 2013

S3 Sync version 4 has been released. The latest version supports downloading files that have been moved to the Glacier storage class. Amazon Glacier is a file archiving service. Storing a file in Glacier costs 1/10th the cost of storing it in S3. The drawback of Glacier is that if you want to retrieve a […]

Read the full article →

SprightlySoft Releases Glacier Sync

December 19, 2012

SprightlySoft is pleased to announce the release of Glacier Sync. Glacier Sync is a Windows application that allows you to synchronize a folder on your computer with a vault on Amazon Glacier. Amazon Glacier is an extremely inexpensive file archiving service. It is designed to store files for a long period of time where the […]

Read the full article →

Uploading Files to S3 with Plupload and ASP.NET

November 16, 2012

Plupload is a component that makes it easy to upload files through a web browser. When you add Plupload  to a web page, users can select multiple files to upload and users can see the progress while an upload is taking place. To read more about Plupload see http://www.plupload.com/. Plupload can be configured to upload files to […]

Read the full article →

S3 Sync Now Supports AWS GovCloud, GreenQloud, and Seeweb

May 11, 2012

SprightlySoft is pleased to announce S3 Sync now supports Amzon’s AWS GovCloud service. GovCloud provides compute and storage services for US government agencies. Data in this environment is segregated and complies with specific requirements for hosting government information.  To read more about GovCloud see http://aws.amazon.com/govcloud-us/. To use S3 Sync with GovCloud you must first have a […]

Read the full article →

SprightlySoft Releases S3 Delete

May 17, 2011

SprightlySoft is pleased to announce the release of S3 Delete. S3 Delete is a command line program that allows Windows users to delete files from Amazon S3. Amazon S3 is a web service that allows you to store and retrieve files. You can upload as many files you’d like and they can be made available […]

Read the full article →

Amazon Simple Notification Service Script

April 18, 2011

Amazon Simple Notification Service (SNS) is a web service that allows you to notify distributed applications by pushing a message to them. Say you have an application that runs on many servers. In a traditional application the computers would continually poll a queue or database looking for a job to process. Many computers continually polling […]

Read the full article →

SprightlySoft AWS Component Source Code Now Available

March 25, 2011

The source code for the SprightlySoft AWS Component is now available to download.  The AWS Component allows Microsoft developers to quickly build applications that interact with Amazon Web Services.  It supports all services offered by Amazon and includes sample code so you can see how to implement functions you need. You may want a copy of the […]

Read the full article →