Creating a script to upload to Amazon Glacier

Posted on 2012-09-07
Last Modified: 2012-09-25

I want to create a script that connects to Amazon Glacier and uploads the daily backups. I have found a peice of software called fastglacier which has a console uploader which seems to work.

But I have no way of selecting only files to upload that were created that day.

The command I had working but will do all files regardless is:

glacier-put my-account c:\backup\*.* eu-west-1 my-vault

Question by:andybrooke
    LVL 37

    Expert Comment

    by:Gerwin Jansen
    But the local-file parameter is allowing wildcards, so can you create a filter that just uploads today's files? Is that what you seek? Or do you need a script that finds the files that were created 'today' and then upload then using fastglacier?

    Author Comment

    Yes just files from today I did state in my post that the one I have does all "files regardless"
    LVL 37

    Expert Comment

    by:Gerwin Jansen
    Can you post a sample of what the file names look like? What Windows OS are you uploading from?
    LVL 32

    Accepted Solution

    this works in windows 2008 or windows vista/7

    set PATH=%PATH%;<path-to-glacier-exe>
    cd <path-to-backup>
    forfiles /D 0 /C "glacier-put my-account @file eu-west-1 my-vault"

    Open in new window

    LVL 32

    Expert Comment

    glad I could help, but why grade B?

    Featured Post

    Want to promote your upcoming event?

    Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

    Join & Write a Comment

    Suggested Solutions

    Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
    Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    This Micro Tutorial will explain how to export DynamoDB tables in Amazon Web Services.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now