none
stsadm export and backup

    Question

  • What is the difference between stsadm backup and export operations.
    I am trying to move content from the production server to the staging server.
    I am fine with backup operation, but when I issued 'export' command, I got fatal error 'sharepoint export failed as not all values have corresponding parent values'. 
    Does anybody know the cause.  I saw one site mentioned hotfix to fix the problem.
    Thursday, September 25, 2008 8:13 PM

Answers

  •  Hi,

    You didn't mention about the version and the content ,i guess site collection..?

    To export sites , you use the following Stsadm command.

    Stsadm –o export –url <URL> -filename <FileName>.cmp

    To back up a site collection, you must use the following stsadm command.

    stsadm –o backup –url <URL of the site collection> -filename <Name of the backup file> 

    To back up an individual database, Web application, or the entire farm, you can use the following Stsadm command.

    stsadm –o backup –directory <UNC path or local drive> -backupmethod <Full or Differential>

    Restore

    To import sites , you use the following Stsadm command.

    Stsadm –o import –url <URL> -filename <FileName>.cmp

    To restore a site collection, you must use the following Stsadm command.

    stsadm –o restore –url <URL of the site collection> -filename <Name of the backup file> 

    To restore an entire farm you can use the following Stsadm command.

    stsadm –o restore –directory <UNC path or local drive> -restoremethod <overwrite or new>


    When you use stsadm - EXPORT  site collection,
    1) Specify the version
    2) Specify the CABSIZE according your requirment.(default size is 25MB)
    3) Give write permission to the temp folder.

    stsadm -o export -url <URL> -filename <export file name> [-overwrite] [-includeusersecurity] [-haltonwarning] [-haltonfatalerror] [-nologfile] [-versions <1-4> 1= Last major version for files and list items (default), 2= The current version, either the last major or the last minor, 3= Last major and last minor version for files and list items, 4= All versions for files and list items] [-cabsize <integer from 1-1024 megabytes> (default: 25MB)] [-nofilecompression] [-quiet]

    Try this and let me know .

    Regards
    Xavier Ravi

    Monday, September 29, 2008 6:25 PM
  •  Here's some link that describes both stsadm commands:

    Backup and restore: Stsadm operations (Office SharePoint Server):
    http://technet.microsoft.com/en-us/library/cc263431.aspx

    Import and export: Stsadm operations (Office SharePoint Server):
    http://technet.microsoft.com/en-us/library/cc262465.aspx


    Import and export: Stsadm operations (Windows SharePoint Services):
    http://technet.microsoft.com/en-us/library/cc288191.aspx

    Back up a farm by using the Stsadm command-line tool (Windows SharePoint Services 3.0):
    http://technet.microsoft.com/en-us/library/cc288541.aspx



     


    Daniel Bugday Web: http://www.sharepointforum.com/ Blog: http://www.sharepointforum.com/en-US/Blog/
    Monday, September 29, 2008 8:33 PM

All replies

  •  Hi,

    You didn't mention about the version and the content ,i guess site collection..?

    To export sites , you use the following Stsadm command.

    Stsadm –o export –url <URL> -filename <FileName>.cmp

    To back up a site collection, you must use the following stsadm command.

    stsadm –o backup –url <URL of the site collection> -filename <Name of the backup file> 

    To back up an individual database, Web application, or the entire farm, you can use the following Stsadm command.

    stsadm –o backup –directory <UNC path or local drive> -backupmethod <Full or Differential>

    Restore

    To import sites , you use the following Stsadm command.

    Stsadm –o import –url <URL> -filename <FileName>.cmp

    To restore a site collection, you must use the following Stsadm command.

    stsadm –o restore –url <URL of the site collection> -filename <Name of the backup file> 

    To restore an entire farm you can use the following Stsadm command.

    stsadm –o restore –directory <UNC path or local drive> -restoremethod <overwrite or new>


    When you use stsadm - EXPORT  site collection,
    1) Specify the version
    2) Specify the CABSIZE according your requirment.(default size is 25MB)
    3) Give write permission to the temp folder.

    stsadm -o export -url <URL> -filename <export file name> [-overwrite] [-includeusersecurity] [-haltonwarning] [-haltonfatalerror] [-nologfile] [-versions <1-4> 1= Last major version for files and list items (default), 2= The current version, either the last major or the last minor, 3= Last major and last minor version for files and list items, 4= All versions for files and list items] [-cabsize <integer from 1-1024 megabytes> (default: 25MB)] [-nofilecompression] [-quiet]

    Try this and let me know .

    Regards
    Xavier Ravi

    Monday, September 29, 2008 6:25 PM
  •  Here's some link that describes both stsadm commands:

    Backup and restore: Stsadm operations (Office SharePoint Server):
    http://technet.microsoft.com/en-us/library/cc263431.aspx

    Import and export: Stsadm operations (Office SharePoint Server):
    http://technet.microsoft.com/en-us/library/cc262465.aspx


    Import and export: Stsadm operations (Windows SharePoint Services):
    http://technet.microsoft.com/en-us/library/cc288191.aspx

    Back up a farm by using the Stsadm command-line tool (Windows SharePoint Services 3.0):
    http://technet.microsoft.com/en-us/library/cc288541.aspx



     


    Daniel Bugday Web: http://www.sharepointforum.com/ Blog: http://www.sharepointforum.com/en-US/Blog/
    Monday, September 29, 2008 8:33 PM