3

I've a webserver Windows 2003. When I do a backup in a zip of some folders, the permissions of the folder doesnt restore when i unzip the compress file. How can I do a zip saving the original permissions or how can i do a backup with all permissions keep intact?

I cant install any software, its a production server.

Zypher
  • 37,405
  • 5
  • 53
  • 95
Leandro Bardelli
  • 213
  • 4
  • 15
  • WinRAR might help as it also handles alternate data streams. –  Aug 15 '11 at 16:01
  • 2
    Use software made for backups rather than relying on zip. – Mark Ransom Aug 15 '11 at 16:10
  • I havent got winrar and i cant install any software, its a production server and another company has to do the deployment. –  Aug 15 '11 at 16:29
  • I know this is not the point of the question (and most of us have some unsupported legacy systems) but 2003 is EOL since `7/14/2015` and it would be wise to migrate it to something under support (or at least something which still gets security updates) – pacey Sep 27 '16 at 18:59

2 Answers2

8

You can do it with a two-step process. If that 2003 server has SP2 on it, you have access to the icacls utility. With that you can run:

icacls f:\inetpub\wwwhome\* /save f:\backups\rights-acls.txt /t /c
[zip f:\inetpub\wwwhome\

That will create a file with all of the rights stored in it, keep it with the zip. To restore

[unzip the file to the target]
icacls f:\inetpub\wwwhome /restore f:\backups\rights-acls.txt 

If you don't have icacls on the system, there isn't much help. Happily, icacls is included on Windows Vista and higher, so if you can access the data via a mapped drive, you can run it from the client-side and drop the file where you need it.

sysadmin1138
  • 133,124
  • 18
  • 176
  • 300
0

I used robocopy, its a cmd application that i can run and comes with Windows.

It works as:

robocopy {source} {destination} /COPY:DAT
pacey
  • 3,833
  • 1
  • 16
  • 31
Leandro Bardelli
  • 213
  • 4
  • 15
  • Robocopy does not come with Server 2003, it is part of the resource pack back then, I believe 2003R2 did include it. – Nick Young Sep 27 '16 at 16:58