How to use Ola Hallengren's scripts?

CharlieLor 566 Reputation points
2024-02-05T18:41:39.6733333+00:00

I'm exploring the Ola Hallengren's scripts.

For transaction log backup, it puts the .trn file inside of serverName$InstanceName/DatabaseName/Log folder. I just need it to put inside of "DatabaseName" folder and that's it. Is this possible?

Thank you.

SQL Server | Other
{count} votes

Accepted answer
  1. Erland Sommarskog 121.7K Reputation points MVP Volunteer Moderator
    2024-02-05T22:44:36.1833333+00:00

    I had a look at https://ola.hallengren.com/sql-server-backup.html and it seems to me that the @DirectoryStructure parameter does what you need. (I don't use Ola's scripts myself, since I am not in a DBA role.)

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.