Backup symlinks, file permission, user and owner
mouse 122 · person cloud · link
Last update
2018-09-05
2018
09-05
« — »
1
2
3
4
5
6
7
# symlinks
find . -type l | tar -czvf links.tgz -T -    # backup
tar -xzvf links.tgz                          # restore

# permissions, owner, group
getfacl -R . | gzip -c > perms.facl.gz # backup
zcat perms.facl.gz | setfacl --restore=-     # restore

Source: unix.stackexchange