- Newest
- Most votes
- Most comments
You can check if the backup is copy-only by running.
SELECT name, is_copy_only FROM msdb.dbo.backupset ORDER BY backup_finish_date DESC;
If is_copy_only = 1
, then VSS is performing a copy-only backup, which does not truncate logs. Note, copy-only backup does not truncate logs. You can take a full backup BACKUP LOG [YourDatabase] TO DISK = 'NUL';
.
Hello SHAJAM,
thank you for your reply.
I realize that a copy-only backup does not perform a log truncate, so I had already tested with another SQL statement of the status of the backup and made sure that it is not a copy-only backup.
Here is the result of my script:
That's why I'm wondering about the check of the log file sizes and their fill level which I query with the following script.
DBCC SQLPERF(LOGSPACE); GO
But I take it from your answer that the AWS EC2 backup with Windows VSS enabled should actually perform a log truncate under normal circumstances. So now I have to look for the reason why this is not happening.
Have a nice day
Relevant content
- asked 3 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago