Operating System - Linux
1828215 Members
2679 Online
109975 Solutions
New Discussion

backup & restore user home directory include hidden files

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: backup & restore user home directory include hidden files

>Here is the output of diff:
# diff /save/user /home/user
Nur in /home/user: .adobe.

It would help if you set the language to English. Nur appears to mean only in.

What is in /save/user/?

>backup /home/user dir using this bash script:
># diff /save/user /home/user

This will backup ALL home directories in /home/. You tape only has "user".
Your script fragments appears to be correct.

>These scripts should run by normal non-root user.

What user is doing the restore? If not "user" that may explain it.
Michal Kapalka (mikap)
Honored Contributor

Re: backup & restore user home directory include hidden files

Hi Chris,

i would recommend to use also -p switch :

-p, --preserve-permissions,
--same-permissions extract information about file permissions (default for superuser)

tar cfzp ....

mikap