Menu

#3730 Virtualmin GPL restore from backup

1.510
open
5
2010-08-08
2010-08-08
No

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

Discussion

  • Jamie Cameron

    Jamie Cameron - 2010-08-09

    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.

     
  • Pieter De Wit

    Pieter De Wit - 2010-08-09

    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

     

Log in to post a comment.