locked
Is version history of site is retained in Export- Import of site in SharePoint2007 RRS feed

  • Question

  • Hi,

    I need an information regarding import export of a subsite.Is version history of site is retained in Export- Import of site in SharePoint2007?? please let me know. Thanks

    Thursday, July 12, 2012 10:31 AM

Answers

  • Yes you can take versions backup as well if you want to ...follow this article and will solve your problem

    http://marcellotonarelli.wordpress.com/2011/02/14/how-to-do-a-sharepoint-site-export-and-import/


    BJ Singh

    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you.


    Thursday, July 12, 2012 2:04 PM
  • Yes, it is if you use the -versions parameter with the export stsadm operation and -updateversions parameter with the import stsadm operation. For a full version history use the -versions 4 and -updateversions 1 parameters:

    stsadm -o export -url http://example/path/to/site -filename example.bak -versions 4

    versions

    Any one of the following versions:

    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

    No

    Indicates which type of file and list item version history should be included in the export. If the -versionsparameter is absent, the export operation will default to using a value of 1.

    stsadm -o import -url http://example/new/path/to/site -filename example.bak -updateversions 1

    updateversions

    Any one of the following versions:

    1. Add new versions to the current file (default)

    2. Overwrite the file and all of its versions (delete then insert)

    3. Ignore the file if it exists on the destination

    No

    Indicates how to resolve situations where a file to be imported to a site already exists in that site. If the-updateversions parameter is absent, the import operation will default to using a value of 1.


    Jason Warren
    Infrastructure Specialist


    Thursday, July 12, 2012 2:05 PM

All replies

  • Yes you can take versions backup as well if you want to ...follow this article and will solve your problem

    http://marcellotonarelli.wordpress.com/2011/02/14/how-to-do-a-sharepoint-site-export-and-import/


    BJ Singh

    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you.


    Thursday, July 12, 2012 2:04 PM
  • Yes, it is if you use the -versions parameter with the export stsadm operation and -updateversions parameter with the import stsadm operation. For a full version history use the -versions 4 and -updateversions 1 parameters:

    stsadm -o export -url http://example/path/to/site -filename example.bak -versions 4

    versions

    Any one of the following versions:

    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

    No

    Indicates which type of file and list item version history should be included in the export. If the -versionsparameter is absent, the export operation will default to using a value of 1.

    stsadm -o import -url http://example/new/path/to/site -filename example.bak -updateversions 1

    updateversions

    Any one of the following versions:

    1. Add new versions to the current file (default)

    2. Overwrite the file and all of its versions (delete then insert)

    3. Ignore the file if it exists on the destination

    No

    Indicates how to resolve situations where a file to be imported to a site already exists in that site. If the-updateversions parameter is absent, the import operation will default to using a value of 1.


    Jason Warren
    Infrastructure Specialist


    Thursday, July 12, 2012 2:05 PM