• Hi!

    I'm sorry to haven't answer, neither updated the script for so long. My appologises.

    First of all, I've made a new version of the script, creating a stored procedure and adding the options With move and with stats written by Henrik. Thank you Henrik.

    logicinside22, thank you for the compliment! The answer to your questions:

    - You shouldn't have any problem using shared locations. But I haven't tested it.

    - The script gets the backup information from msdb (I copy the query under these lines). The only think you should be carefull is that in your maintenance plan you should clean the history after the last backup date. If you do a full backup every weekend, the history retention in msdb should be higher, for example 15 days, to allow

    the query to get the full backup information.

    bitBIG, I've added the RTRIM to the script, but I prefered to keep the VARCHAR(MAX)

    vvkp, I'm planning to allow point in time restore, but I don't know the stopAt time at the moment of scripting the restore. I'm planning to write a Powershell script that will write the restore script based on the files found, rather than the information on msdb. I'll post it here.

    Regards,

    Josep