CS615A -- Aspects of System Administration
The objective of this assignment is for you to create a tool able to restore data from an EBS volume, In the process, you will (hopefully) learn a few things about writing modular system tools, about command pipelining, the use of some common commands, and gain some insights into a cloud-based storage model.
The detailed specification of the program can be found in this manual page.
This assignment is worth 50 points.
The tool you write will be executed (and graded) on shell.cs615asa.stevens.netmeister.org. You are free to develop it in some other environment, but please make sure to test it on this system before submitting it. If it does not work there, you will not get any points.
You are free to choose any programming language you like to implement this tool, but you must include whatever pre-requisites your tool might require.
You should accompany your submission with a Makefile, such that after running 'make', the user should be able to run your command by invoking 'ec2-restore' using the absolute path to your directory from any location without having to install any additional tools or libraries.
Program behaviour and safe assumptions
Your program will not require any modification of the environment (i.e., you can assume the user has their environment set up for EC2), and exection of the program will be exactly as outlined in the manual page ec2-restore(1). Please read this manual page carefully.
In addition to what the manual page notes, you may further assume the following:
You may choose to implement the programs in any way you like, including breaking it down into smaller individual tools, scripts or programs.
You want to make sure that your program exhibits the various features of good software engineering practices we discussed. Please make sure to consider these and have your submission reflect wherever possible.
It is in your interest to accompany your submission with some commentary on why you chose the programming language, the approach you took, any considerations you might have. The more thought I see you put into the assignment, the better.
You may use code you find on the internet if and only if you explicitly note which parts are not your own and the code in question is licensed such that you can use it in this manner.
This is not a trivial assignment. Please do not delay starting to work on it.
In order to test the functionality of your program, you can create a volume and write data to it using the following steps, assuming you have sourced the course awsaliases file:
$ newVolume $ aws ec2 attach-volume $(newVolume)