DECLARE @filename varchar(255)
SET @filename = 'D:\Backup\DB_hourly_' + REPLACE(convert(char(19),GetDate(),120),':','-') + '.bak'
BACKUP DATABASE [db] TO DISK=@filename WITH RETAINDAYS = 7, NOFORMAT, INIT, NAME = N'db-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10