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, Solaris, AIX, and HP-UX). 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
UNIX and Linux platforms. The cp command can preserve ACLs directly on some platforms , such as HP-UX, while on other platforms it needs special arguments to preserve ACLs, such as Linux, Solaris, and AIX. 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, such as HP-UX. 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) (x86_64, ppc64le, or s390x) | cp -a -p -R vob1.vbs vob2.vbs | tar --acls -cvfvob1.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 |
AIX | cp -p -R vob1.vbs vob2.vbs | tar pcvf vob1.tar vob1.vbs | tar xpvf vob1.tar |
HP-UX | cp -p -R vob1.vbs vob2.vbs | tar pcvf vob1.tar vob1.vbs | tar xpvf vob1.tar |