Scheduled backups not working

Status
Not open for further replies.

sigmatek

Customer
Joined
Dec 9, 2015
Messages
6
Reaction score
1
I'm having some trouble getting scheduled backups working. If I run it manually, it seems to work, but not when run as a scheduled task.

The email just gives this:
3CX Phone System tried to backup but failed due to the following reason(s):
System.IO.FileNotFoundException: Unable to find the specified file.
at _3cxFilesystemImplementations.Samba.Smb2FileSystem.Move(String filename1, String filename2)
at BackupRestoreSchedule.BackupJob.Execute(IJobExecutionContext context)

I don't see any relevant log files.

It creates a 3CXScheduledBackup.zip.tmp file, so the folder is there, and the permissions are correct. I'm not sure why its not finishing.
 
Type: SMB
Path: smb://server.domain.net/Backup/Phone/Seattle
Domain: DOMAIN
User: backup
Password: Password
 
So I figured out what the issue is. The user name and password provided are used for:
  • Querying the folder
  • Manually backing up 3CX
  • Creating the file when scheduled
but it is NOT used for:
  • Writing the contents of the backup to the file when scheduled
This part uses the service user that 3CX is running under. So you need to give 2 users permission. The one you specify, and the one the service is running under. Its annoying that manually running the backup uses the correct user.
 
  • Like
Reactions: stokesy
Status
Not open for further replies.

Forum statistics

Threads
111,958
Messages
589,938
Members
164,861
Latest member
LewisJC