One of the most I like most in Linux is the strong separation among user data and system data. This makes installing new versions, or moving data from different hard disks (and other sensitive operations that require all your data).
To copy all user data you need to type:
tar -cvpf compressed-file.tar /home/
This creates (
-c) a file (
compressed-file.tar retaining file and folder permissions and storing there all data from the
To extract this you would only need to type:
tar -xf compressed-file.tar
-x option specifies the extraction from
To restore the data, the operation should be done at the root directory (since files will be extracted with full-path directories).