- Joined
- May 17, 2010
- Messages
- 127
- Reaction score
- 50
I am backing up to an SMB destination mounted on my 3CX server (the PBX is hosted in Azure, I am using Azure Files). The Linux OS can see the mount and work with the files without any problems, 3CX can see the mount point and the contents of it, and I can successfully create a manual backup to this location. The scheduled backup fails each time and I am emailed this error:
Does the scheduled backup do something differently to the manual backup? In each case I am backing up the license information, custom templates, voicemails and recordings. Any suggestions?
Code:
3CX Phone System tried to backup but failed due to the following reason(s):
System.UnauthorizedAccessException: Access to the path is denied. ---> System.IO.IOException: Operation not permitted
--- End of inner exception stack trace ---
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Interop.CheckIo(Int64 result, String path, Boolean isDirectory, Func`2 errorRewriter)
at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
at System.IO.FileSystem.MoveFile(String sourceFullPath, String destFullPath)
at System.IO.File.Move(String sourceFileName, String destFileName)
at BackupRestoreSchedule.BackupJob.RotateFiles(IFilesystem filesystem, Int32 count, String filename)
at BackupRestoreSchedule.BackupJob.Execute(IJobExecutionContext context)
Does the scheduled backup do something differently to the manual backup? In each case I am backing up the license information, custom templates, voicemails and recordings. Any suggestions?