I'm performing a backup of some server files that are owned by the server user. If I try to backup them up using the
tar command I get:
tar: ./somedir Cannot open: Permission denied tar: Exiting with failure due to previous errors
However if I do
sudo tar ... then everything appears to archive file. Will this change any file ownership / directory ownership / permissions on any of the files being archived?