error saving site as template: Failure Decompressing data from a cabinet file.

질문 error saving site as template: Failure Decompressing data from a cabinet file.

  • 2008년 3월 28일 금요일 오후 6:45
     
     

     

    Can anyone help me with this? I am trying to save a site as a template. The site is 130MEGS. I expanded

    the size using the stsadm.exe command to 500MEGS. I moved sites before saving them as templates, copying them to a new server, running the stsadm.exe addtemplate....... Then creating a new site using this custom template.

    This works to move sites. I do lose some permissions and some customizations but that is easy to work with.

    I need to do it the way described above because backup\restore or import\export is not an option because the server has a different name and when I did this I have links that point to both servers.

모든 응답

  • 2008년 4월 4일 금요일 오후 6:41
     
     

     

    • stsadm.exe -o export -url http://intranet/test -includeusersecurity -nofilecompression -filename C:\backup

    Once you finish your export use the stsadm import command with the same nofilecompression attribute. For example:

    • stsadm.exe -o import -url http://intranet/test -includeusersecurity -nofilecompression -filename C:\backup

    Check out Ragav's blog post for more detailed information: http://ragavj.blogspot.com/2008/02/failure-decompressing-data-from-cabinet.html

  • 2008년 4월 29일 화요일 오전 6:15
     
     

    good day,

     

    i tried the first command but it's givin' me that "stsadm.exe" is not recognized as an internal or external command, operable program or batch file.

    • 답변으로 제안됨 Darren JR 2008년 11월 17일 월요일 오전 10:16
    • 답변으로 제안 취소됨 Mike Walsh FIN 2009년 4월 26일 일요일 오전 11:32
    •  
  • 2008년 11월 17일 월요일 오전 10:24
     
     
     The Stsadm execute is stored in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN

    So you need to change to this directory in the command promt as shown below: 

    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.

    C:\> cd C:\Program Files\Common Files\Microsoft Shared\web server extensions\12

    C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsadm.exe -o export -url http://yoursite


    or  alternatively add the the driectory to your machines Environment Variables as a PATH and then you will not need to chnage the directory in the command promt.


    Darren
    • 답변으로 제안됨 Darren JR 2008년 11월 17일 월요일 오후 2:13
    • 답변으로 제안 취소됨 Mike Walsh FIN 2009년 4월 26일 일요일 오전 11:32
    •  
  • 2008년 11월 18일 화요일 오후 10:36
     
     
    Just create a PATH variable, and run the commands using stsadm instead of stsadm.exe

    http://weblogs.asp.net/danlewis/archive/2008/08/07/stsadm-path-access-stsadm-at-anytime-in-command-prompt.aspx

    1. Access Environment Variables
    2. Go to your server's System Properties
      1. RClick 'My Computer' > Properties
    3. Click Advanced tab
    4. Click Environment Variables button

      image
    5. Select the variable Path in System Variables
    6. Click Edit button

      image 
    7. In the edit window, add the directory path for stsadm at the end.  Make sure you add a semicolon before the path.
    8. C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\

      image
    9. Click the OK button

    Dan Lewis
    http://weblogs.asp.net/danlewis
  • 2012년 6월 27일 수요일 오후 9:58
     
     
    In my case the site has a custom site definition which I am trying to remove by recreating the site from scratch using 'blank site template' and copying the existing data. The list items need to keep their original ID values.  Probably custom code is the only solution? 

    macrel