Hi Guys,
I am not sure if this feature is in Pro, but when you have backups that use %Y etc in the name, when it comes to the restore, Virtualmin expects a filename called "%Y". Wouldn't it be better to do list the files that are on the ftp (if a %Y or something was in the file name) and allowing the user to select the backup ?
Some "code" :
if (in_string ("%",ftp_filename))
then
list_ftp_contents (ftp_filename_replaced_first_%_with_*);
get_user_input ()
end;
continue_with_normal_restore ()
Hope that is clear :)
Cheers,
Pieter
Sorry, but virtualmin currently always needs you to enter the actual filename .. it doesn't do date-based substitution on restores, unless you are restoring a scheduled backup, in which case it uses the current date.
Hi Jamie,
That is how I did the backup/restore, hence I thought it was a tad odd :)
I can send screenshots if that will help ?
Cheers,
Pieter