I have a database that I need to backup to URL, but without the log file.
BACKUP DATABASE [MyDB] TO URL = @destination
WITH INIT, FORMAT, COPY_ONLY, CREDENTIAL = '', stats=1
The above script includes the log file.
When I back up to disk (not what I need) with the following command, it does not however back up the Log file - which is what I want
BACKUP DATABASE MyDB
TO DISK = 'F:\SQLServer\MyDB.bak'
WITH COPY_ONLY;
Why would the top script include the log file, and the bottom script exclude the log file?
sp_configureor your query if you are using compression when backup – Shanky Feb 26 '19 at 09:25