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.)
How to use Ola Hallengren's scripts?
CharlieLor
566
Reputation points
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
14,498 questions
Accepted answer
-
Erland Sommarskog 121.7K Reputation points MVP Volunteer Moderator
2024-02-05T22:44:36.1833333+00:00