January 2018
Intermediate to advanced
376 pages
8h 45m
English
If you ever need to use tar to create a backup of either a file or a directory that has ACLs assigned to it, you'll need to include the --acls option switch. Otherwise, the ACLs will be lost. To show this, I'll create a backup of the perm_demo_dir directory without the --acls option. First, note that I do have ACLs on files in this directory, as indicated by the + sign on the last two files:
[donnie@localhost ~]$ cd perm_demo_dir[donnie@localhost perm_demo_dir]$ ls -ltotal 0-rw-rw-r--. 1 donnie accounting 0 Nov 5 20:17 file1.txt-rw-rw-r--. 1 donnie accounting 0 Nov 5 20:17 file2.txt-rw-rw-r--. 1 donnie accounting 0 Nov 5 20:17 file3.txt-rw-rw-r--. 1 donnie accounting ...
Read now
Unlock full access