Backing up ACL-protected VOBs
In addition to the standard requirements for VOB and view backup toolse, in order to backup VOB with ACLs, backup tools should have the ability to preserve file system ACLs on supported platforms (Windows, Linux, and Solaris). Different platforms have different tools that can preserve ACLs, and the same tool might have different abilities to back up with ACLs. The documentation for such tools should be checked carefully before using them.
VOB Backup with ACLs on local file system
Linux platforms. The cp command can preserve ACLs directly on some platforms, while on other platforms it needs special arguments to preserve ACLs, such as Linux, and Solaris. The most common argument for cp to preserve ACLs is -p; -a is the corresponding argument on Linux. Archive tools such as tar cannot preserve ACLs on some platforms. On other platforms, special arguments to tar should be specified for this purpose. -p, -U and --acls are different arguments of tar command on different platforms for preserving ACLs.
Platform | Copy | Archive | Restore from Archive |
---|---|---|---|
Windows | xcopy cvob1.vbs cvob2.vbs /E /O /H | ||
robocopy vob1.vbs vob2.vbs /COPYALL /E | |||
Linux (RedHat only) | cp -a -p -R vob1.vbs vob2.vbs | tar --acls -cvf vob1.tar vob1.vbs/ | tar xpvf vob1.tar |
Solaris | cp -p -R vob1.vbs vob2.vbs | tar pcvf vob1.tar vob1.vbs | tar xpvf vob1.tar |