When you increase the maximum size of a list/site template by running following STSADM operation e.g 50 MB:
stsadm -o setproperty -propertyname max-template-document-size -propertyvalue 50000000
However, After this operation you may encounter another error when trying to save the template: 'Failure decompressing data from a cabinet file'.
The resolution to this is to use stsadm to do the export (and subsequent import), and specify the attribute -nofilecompression
first take the backup of the site by following operation:
stsadm -o export -url http://yoururl/youroldsite -includeusersecurity -nofilecompression -filename C:\yourdirectory\myfile.bak
If site collection is not available already in the existing farm then create the site collection by choosing the same site template whose backup you have taken above by exporting the content or else it will give error. The same operation also works for cross site collection also Like you can copy the entire site collection http://server/sites/globalIT to new site collection http://server/sites/globalITtest or even http://server1/sites/globalittest.
stsadm -o import -url http://yoururl/yournewsite -includeusersecurity -nofilecompression
-filename C:\yourdirectory\myfile.bak
-filename C:\yourdirectory\myfile.bak
After some time, the command window will show the "operation completed successfully" once all the contents are imported successfully.
No comments:
Post a Comment