• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1531
  • Last Modified:

Creating a script to upload to Amazon Glacier

Hi,

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

Thanks
0
andybrooke
Asked:
andybrooke
  • 2
  • 2
1 Solution
 
Gerwin Jansen, EE MVETopic Advisor Commented:
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?
0
 
andybrookeAuthor Commented:
Yes just files from today I did state in my post that the one I have does all "files regardless"
0
 
Gerwin Jansen, EE MVETopic Advisor Commented:
Can you post a sample of what the file names look like? What Windows OS are you uploading from?
0
 
shalomcCTOCommented:
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


edited
0
 
shalomcCTOCommented:
glad I could help, but why grade B?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now