Use the ‘tar’ command to backup all directories in the home folder into a single
tar file. Restore these files/folder into a different location in Unix/Linux.
The command is as follows to save backups to /backups/ directory
mkdir /backups/
tar -zcvf /backups/home.tar.gz /home/
See https://www.cyberciti.biz/faq/how-do-i-compress-a-whole-linux-or-unix-directory/