Link to home
Create AccountLog in
Avatar of gtrapp
gtrapp

asked on

Does the stsadm -o backup replace the file?

Hi,

I am using stsadm command to create backup file of my WSS 3.0 SharePoint site content.

stsadm.exe -o backup -url http://sharepoint_site-filename "y:\SQL-Backups\SP2007\server_stsadmin_backup.bak"

With this command, will it replace the file, or do I need to pass other parameters to have stsadm just write over the existing one?
Avatar of Justin Smith
Justin Smith
Flag of United States of America image

You need to pass the -force parameter
SOLUTION
Avatar of Justin Smith
Justin Smith
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of gtrapp
gtrapp

ASKER

At the site level only Something like this:

stsadm.exe -o backup -url http://sharepoint_site-filename "y:\SQL-Backups\SP2007\server_stsadmin_backup.bak" -overwrite
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of gtrapp

ASKER

A follow up question: What if WSS 3.0 fails during the backup process? In the folder, there will be an existing BAK file, a backup from the night before. Will WSS leave the existing file alone?
Avatar of gtrapp

ASKER

Thanks.