That depends on what files you are backing up and why. If you are simply concerned about user files, then just backup /home and don't worry about the UID, GID problem. Unless you have hundreds of users it isn't difficult to fix (or avoid by assigning old users the same uid/gid).
Generally if you are backing up the OS, you would simply not worry about this issue either, because the purpose of an OS backup is to restore the machine as it was at the time of the backup. Practically speaking, other than user files, you will not be able to use much from a backup if you are transitioning from one distro to another. At least not directly, because different distros move around where various settings and files are stored in enough cases that it would be more work to fix than simply rebuilding from scratch.
|