And…putting an emphasis on uid/gid’s for when you really need to keep perms exact:

tar czpvf ../home.tgz --numeric-owner * .*

Note that you don’t need the “p” when you run this as root.

Mario Loria is a builder of diverse infrastructure with modern workloads on both bare-metal and cloud platforms. He's traversed roles in system administration, network engineering, and DevOps. You can learn more about him here.