Maintain file and folder permissions inside archives
zip
does not store file permissions in the archive.
tar
archives will preserve file permissions on Linux and OS X. I have no idea what happens on Windows. If you can test things out on Windows and it works, this is probably your best bet. It probably depends on what tool people use to unpack the archives.
Another option would be to create an installer, although there are few non-commercial options for creating cross-platform installers. Wikipedia has a list.
Maintain sub-folder and files permission as in source: puppet
The file
resource has the attribute source_permissions
. So you could do something like this:
file { '/some/where':
...
source_permissions => 'use', # or 'use_when_creating'
}
Folder permissions when zip and unzip on Windows
I used robocopy, its a cmd application that i can run and comes with Windows.
It works as:
robocopy {source} {destination} /COPY:DAT
Related Topics
Delete All Files Except the Newest 3 in Bash Script
How to Add Chromedriver to Path in Linux
How to Make a Bash Shell Script Interact with Another Command Line Program
How Bash Handles the Jobs When Logout
Bash: Head & Tail Behavior with Bash Script
How to Create Tar for Files Older Than 7 Days Using Linux Shell Scripting
Merging Two Files by a Single Column in Unix
Sort Logs by Date Field in Bash
Makefile Command Substitution Problem
How to Run the Cron Job as a User Instead of Root User
What Is Export_Symbol_Gpl in Linux Kernel Code
Gdb Can Not Open Shared Object File
Get Time in Milliseconds Without an Installing an Extra Package