I want to backup all data from a server before I do an Upgrade (Debian). Due to the fact, that there are many user accounts on the server, I thought I just copy all data with scp (
scp -r * user@backup-path) as root to my backup disk. The problem now is that, if I do it like that I mess up the permissions of the files.
After coping the files look like this:
drwxrwxrwx 1 root root 496 Mar 8 09:28 . drwxrwxrwx 1 root root 336 Mar 8 09:27 .. -rwxrwxrwx 1 root root 154373124 Mar 8 09:24 file-5.cas -rwxrwxrwx 1 root root 219287728 Mar 8 09:24 copy.tar
If I need to resore the data later this probably is a problem, isn't it?
Is there a better way to do that?