heihachi88
2/2/2016 - 7:42 PM

Moving files from one ubuntu server to another (preserving owner/group)

Moving files from one ubuntu server to another (preserving owner/group)

rsync -av source 192.0.2.1:/dest/ination
Following files/dirs are required for traditional Linux user management:
* /etc/passwd - contains various pieces of information for each user account

* /etc/shadow - contains the encrypted password information for user's accounts and optional the password aging information.

* /etc/group - defines the groups to which users belong

* /etc/gshadow - group shadow file (contains the encrypted password for group)

* /var/spool/cron/crontabs/* (crontabs of all users on the server)

* /home (user's files)