By mistake we did a
chown www-data:www-data / -R
on a production server.
We do have a backup, but as only the permissions are wrong we want to restore only the permissions from the backup, not the file content.
Is there a simple command for this, for example with rsync
?