I think it would be very helpful to order the backup files listed in "bam-backups" alphabetically. Actually I cannot see a specific order and it is somehow difficult to find the latest backup (I have the timestamp as part of the file name). The file timestamp doesn't match the backup time stamp, especially if the codebase is rsync'ed from one location to another or version controlled with git.
In the 6.x and 7.x branch of the module it is only necessary to insert
asort($files);
at line 206 in includes/backup_migrate.drush.inc.
It might also be possible to provide an option to the "bam-backups" command for this. In this case I would provide a patch, off course :)
Comments
Comment #1
frank ralf commentedActually, the backups are sorted alphabetically now as requested in the OP (see screenshot).
However, I would prefer a chronological sort order or even better the option to choose between sort orders. I only changed the name of my development site so now the sort order gets jumbled.
Frank
Comment #2
Anonymous (not verified) commentedHere ist a patch. It works with PHP 5.3.26, but shout be working with any PHP version supported by Drupal 7.
Comment #3
ronan commentedDrupal 7 supports PHP 5.2.5 and it doesn't look like closures are available < 5.3. I can commit this if you want to rewrite it to not use the anonymous function.
Thanks
Ronan
Comment #4
Anonymous (not verified) commentedI provided a new patch and replaced the anonymous function by helper function.
Comment #5
couturier commentedThere has been discussion of moving the best feature requests to the 8.x-4.x-dev branch since that is where most of the work is taking place going forward.
It is unclear whether ronan already committed this to the 7.x branch. Can anyone confirm?
Comment #6
couturier commentedIt looks like this has just been done here: Ability to order the Saved Backups by Name, Date and Size