–full backup (overwrite backupset, pa formatuar media set, me emer)
BACKUP DATABASE [testxml]
TO DISK = N’C:\Program Files\Microsoft SQL Server\MSSQL13.SQL2016\MSSQL\Backup\testxml.bak’
WITH NOFORMAT, INIT, NAME = N’testxml-Full Database Backup’
GO
–differential backup (me append, me emer, dhe pa formatuar media set)
BACKUP DATABASE [testxml]
TO DISK = N’C:\Program Files\Microsoft SQL Server\MSSQL13.SQL2016\MSSQL\Backup\testxml.bak’
WITH differential, NOFORMAT, NOINIT, NAME = N’testxml-Diff Database Backup’
GO
–Log backup (me append, me emer, dhe pa formatuar media set)
BACKUP LOG [testxml]
TO DISK = N’C:\Program Files\Microsoft SQL Server\MSSQL13.SQL2016\MSSQL\Backup\testxml.bak’
WITH NOFORMAT, NOINIT, NAME = N’testxml-log Database Backup 2′
GO
**Vetem T-Log backup ben shkurtimin e LOG File, asnje backup tjeter.
**DBCC Shrinkfile rekomandohet te kryhet vetem mbas nje full backup.