I'm trying to schedule automatic backups of my SharePoint 2007 site.ÃÂ I wrote a .vbs script that does the backup with the following line:
objShell.Run "cmd /c stsadm.exe -o backup -directory """ & BACKUP_DIR & SITE_DIR & """ -backupmethod full -item ""Farm\Windows SharePoint Services Web Application\SharePoint - SharePointSites"" > """ & CURR_DIR & "log.txt""", 0, True
I ran the vbs script from the command line and everything worked fine.ÃÂ I used the Windows Task schedule to run the script as a scheduled task.ÃÂ The script ran fine and the backup completed successfully (according to the logs), but now if I go to the Central Admin page and try to do a restore, I get the error:
The backup/restore job failed. In order to rerun the backup/restore the timer job must be deleted from the Timer Job Definitions page. Failure Message: Backup or restore is already running.
The odd thing is I can do another backup or restore using stsadm at the command line and it works fine.ÃÂ I can also run the scheduled task to do another backup and that works fine too.ÃÂ I just can't do any backups or restores from Cetnral Admin anymore.
Any suugestions or ideas?
View Complete Post