2 replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
source | link

In the comments you confirm that you're running the backup as the root user rather than as yourself. When you become the root user, your value of $HOME also changes. (This is affected by the way in which you become root.)

Thus, when you run tar cvf /tmp/backup.tar $HOME you get the $HOME directory for root. What has been very confusing in your question (and the linked onelinked one) is that you have been interchanging $HOME and /home/masi.

To backup /home/masi you should use something like tar cvf /tmp/backup.tar /home/masi. Or change the means by which you become the root user so that $HOME is not changed too.

When you backup the correct directory tree I suspect you'll find your missing Documents folder.

In the comments you confirm that you're running the backup as the root user rather than as yourself. When you become the root user, your value of $HOME also changes. (This is affected by the way in which you become root.)

Thus, when you run tar cvf /tmp/backup.tar $HOME you get the $HOME directory for root. What has been very confusing in your question (and the linked one) is that you have been interchanging $HOME and /home/masi.

To backup /home/masi you should use something like tar cvf /tmp/backup.tar /home/masi. Or change the means by which you become the root user so that $HOME is not changed too.

When you backup the correct directory tree I suspect you'll find your missing Documents folder.

In the comments you confirm that you're running the backup as the root user rather than as yourself. When you become the root user, your value of $HOME also changes. (This is affected by the way in which you become root.)

Thus, when you run tar cvf /tmp/backup.tar $HOME you get the $HOME directory for root. What has been very confusing in your question (and the linked one) is that you have been interchanging $HOME and /home/masi.

To backup /home/masi you should use something like tar cvf /tmp/backup.tar /home/masi. Or change the means by which you become the root user so that $HOME is not changed too.

When you backup the correct directory tree I suspect you'll find your missing Documents folder.

1
source | link

In the comments you confirm that you're running the backup as the root user rather than as yourself. When you become the root user, your value of $HOME also changes. (This is affected by the way in which you become root.)

Thus, when you run tar cvf /tmp/backup.tar $HOME you get the $HOME directory for root. What has been very confusing in your question (and the linked one) is that you have been interchanging $HOME and /home/masi.

To backup /home/masi you should use something like tar cvf /tmp/backup.tar /home/masi. Or change the means by which you become the root user so that $HOME is not changed too.

When you backup the correct directory tree I suspect you'll find your missing Documents folder.