Tom Skowyrski
asked on
Sharepoint WSS 3.0 backup stsadmin scheduled task command line fails
Hi
We have Sharepoint WSS 3.0 backup set as scheduled task using stsadmin command line batch file set to run full backup to the nas device on the network but it fails and just disappears off the screen without processing anything. Here is the file I have:
@echo off
cd\
cd "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN"
stsadm.exe -o backup -url http://sharepoint/ -directory "\\storage\NAS\Backup\Shar epoint" -BackupMethod
Full -percentage 5
exit
I have checked the permissions to the destinations and Administrator has full access. It is Netgear 314 ReadyNAs connected to our Active Directory.
If I open command prompt and run the command lines separately i.e.:
first running cd "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN"
then C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN"
stsadm.exe -o backup -url http://sharepoint/ -directory "\\storage\NAS\Backup\Shar epoint" -BackupMethod
Full -percentage 5
it does run but still gives me an errors:
1. Error: Object SharePoint_Config_35300148 -5f31-4d5a -b3ca-0f85 4f75678d failed in e
vent OnBackup. For more information, see the error log located in the backup dir
ectory.
2. SqlException: Cannot open backup device '\\storage\NAS\Backup\Shar epoint\spb r0002\0000 000C.bak'. Operating system error 5(error not found).
BACKUP DATABASE is terminating abnormally.
3. Error: Object SharepointPortal failed in event OnBackup. For more information, see the
error log located in the backup directory.
4. SqlException: Cannot open backup device '\\storage\NAS\Backup\Shar epoint\spb r0002\0000 000E.bak'. Operating system error 5(error not found).
BACKUP DATABASE is terminating abnormally.
5. Error: Object SharePoint_AdminContent_5f 3dfeae-eb3 3-4cf6-a58 e-41f31328 ab76 faile
d in event OnBackup. For more information, see the error log located in the back
up directory.
6. SqlException: Cannot open backup device '\\storage\NAS\Backup\Shar epoint\spb r0002\0000 0010.bak'. Operating system error 5(error not found).
BACKUP DATABASE is terminating abnormally.
7. Error: Object 4bab9cf7-a32f-4915-a8f8-0c 75498625c4 failed in event OnBackup. For
more information, see the error log located in the backup directory.
InvalidOperationException: System.UnauthorizedAccessE xception: Access to
the path '\\storage\NAS\Backup\Shar epoint\spb r0002\4bab 9cf7-a32f- 49
15-a8f8-0c75498625c4' is denied.
at System.IO.__Error.WinIOErr or(Int32 errorCode, String maybeFullPath)
The thing is that if I run the same command but point it to local drive over the network on the same server then it completes fine.
Another thing is that it managed to create some files in \\storage\NAS\Backup\Share point\spbr 0002 folder.
And I don't have problems copying, moving or deleting the files to the destination. I have selected the inheritance of permissions to the child files and folders on the \\storage\NAS\Backup folder and replaced all permissions with the ones from \\storage\NAS\Backup. Just to let you know that Everyone has only Read&Execute permission to NAs as default. Not sure if I should remove that.
Also, the batch file seems not to go from one line to another as the window is gone so quickly. However, when I run commands one by one then it takes about a minute to go through.
Any ideas?
PS. I only want the full backup to run daily or full and differential scheme.
Regards,
Tom
We have Sharepoint WSS 3.0 backup set as scheduled task using stsadmin command line batch file set to run full backup to the nas device on the network but it fails and just disappears off the screen without processing anything. Here is the file I have:
@echo off
cd\
cd "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN"
stsadm.exe -o backup -url http://sharepoint/ -directory "\\storage\NAS\Backup\Shar
Full -percentage 5
exit
I have checked the permissions to the destinations and Administrator has full access. It is Netgear 314 ReadyNAs connected to our Active Directory.
If I open command prompt and run the command lines separately i.e.:
first running cd "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN"
then C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN"
stsadm.exe -o backup -url http://sharepoint/ -directory "\\storage\NAS\Backup\Shar
Full -percentage 5
it does run but still gives me an errors:
1. Error: Object SharePoint_Config_35300148
vent OnBackup. For more information, see the error log located in the backup dir
ectory.
2. SqlException: Cannot open backup device '\\storage\NAS\Backup\Shar
BACKUP DATABASE is terminating abnormally.
3. Error: Object SharepointPortal failed in event OnBackup. For more information, see the
error log located in the backup directory.
4. SqlException: Cannot open backup device '\\storage\NAS\Backup\Shar
BACKUP DATABASE is terminating abnormally.
5. Error: Object SharePoint_AdminContent_5f
d in event OnBackup. For more information, see the error log located in the back
up directory.
6. SqlException: Cannot open backup device '\\storage\NAS\Backup\Shar
BACKUP DATABASE is terminating abnormally.
7. Error: Object 4bab9cf7-a32f-4915-a8f8-0c
more information, see the error log located in the backup directory.
InvalidOperationException:
the path '\\storage\NAS\Backup\Shar
15-a8f8-0c75498625c4' is denied.
at System.IO.__Error.WinIOErr
The thing is that if I run the same command but point it to local drive over the network on the same server then it completes fine.
Another thing is that it managed to create some files in \\storage\NAS\Backup\Share
And I don't have problems copying, moving or deleting the files to the destination. I have selected the inheritance of permissions to the child files and folders on the \\storage\NAS\Backup folder and replaced all permissions with the ones from \\storage\NAS\Backup. Just to let you know that Everyone has only Read&Execute permission to NAs as default. Not sure if I should remove that.
Also, the batch file seems not to go from one line to another as the window is gone so quickly. However, when I run commands one by one then it takes about a minute to go through.
Any ideas?
PS. I only want the full backup to run daily or full and differential scheme.
Regards,
Tom
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Could you please mention what is the version of Active Directory?
Backup process uses farm account (or timer job account - can't remember which).
Ensure this account has access to you NAS.
Ensure this account has access to you NAS.
ASKER
I have tried it last night after changing the permissions on NAS to Everyone Full and it succeeded. I will try with farm account and will let you know.