I store backups of databases in a directory structure
an example would be
note that timestamp from the backup file cannot be used. Before the automation testing starts the server time is set to 5.5.2011
So the question is how I can get the latest file if I pass the "base directory" (basics_mini) to some function that I am going to code.
I need to restore the newest database. I do that in php but I wonder if there is a simple shell scripting solution.