...
Tar can be used to backup an entire directory keeping all permissions and users accounts intact. The trick is to use sudo to keep the permissions intact.
Also, using this method, tar up a real directory, not a symbolic link to one.
Note |
---|
In this case, order of the switches (zcvpf) does matter. Otherwise, you will get an error (record the error here) once the tar command finishes. |
...