I am creating bash script to store backup files on Rackspace (mosso). For now i am done with uploading and deleting files from containers.
Next step is to remove files older than two weeks (remove from container).
The questions is how to get metadata from object? e.g on uploading i am creating metadata for objects (Created Date) to store timestamp.
- I have some files on my hosting (different than cloud): dbbackup.tar.gz dbbackup2.tar.gz dbbackup3.tar.gz
- running cron to upload that files into Rackspace Files
-cron:
- delete old files (older than 2 weeks)
- upload new backup files
- add metadata (Created Date, Content Type)
The issue is in 2.1 (Deleting) i don't see file created date in Rackspace Cloud interface and i don't see it also in http headers.
I need that data to check expiration date for the given file. So the question is HOW TO GET MY CUSTOM ADDED METADATA to use in calculations ?
Thanks