I've scheduled a database backup through Litespeed Console to backup to a UNC path, but it's not working. Here's the SQl from the step:
declare @script nvarchar(4000)
set @script = N'
exec master.dbo.xp_backup_database
@database = N''LiteSpeedLocal'',
@backupname = N''LiteSpeedLocal - Full Database Backup'',
@desc = N''Full Backup of LiteSpeedLocal on 5/26/2013 10:17:44 PM'',
@compressionlevel = 2,
@filename = N''\\cloudpath\mssql\LiteSpeedLocal.bak'',
@init = 0,
@with = N''STATS = 10'''
exec (@script)
and here's the error from the job:
Executed as user: Dev\sqlagentservice.
LiteSpeed(R) for SQL Server Version 7.1.0.1720 (64bit) Copyright 2013 Quest Software, Inc.
[SQLSTATE 01000] (Message 1) Directory '\\cloudpath' could not be created [SQLSTATE 42000] (Error 61504). The step failed.
Error SQLSTATE 42000 is Synax error or access violation, but when I log into a system as Dev\sqlagentservice I can view \\cloudpath\mssql\ and create/delete content. Also I can backup to a local drive fine so I'm pretty sure Litespeed is working as it should.
Any thoughts? Thanks.