Hello guys, first sorry for my basic english. I had to started to work with linux, even if for the moment a i make basics things i would like to do it in the better way as possible
Sometimes i have to move data between Ubuntu Workstation, mainly data from home profile but not only
if i want to backup the home folder of a standard user
joe using my administrative accounts
admin
i run the following command:
I want to save only the data preserving the permission(not temp files, configuration files, cache files, hidden files )
Can you tell me if the command below is a good choice?
Code:
tar -cpvzf /mnt/mybackup_Folder/back_joe.tar.gz /home/joe --exclude='.*'
When i restore the tar it recreate all the full path. So for example if i restore the tar inside
/home/joe/Document/Restored_Files i will found
/
Code:
home/joe/Documents/Restored_Files/home/joe/Documents
/home/joe/Documents/Restored_Files/home/joe/Desktop
/home/joe/Documents/Restored_Files/home/joe/Download
etc
I would like to restore without full path as below:
Code:
/home/joe/Documents/Restored_Files/Documents
/home/joe/Documents/Restored_Files/Desktop
/home/joe/Documents/Restored_Files/Download
I tried with the option -C but maybe i didnt undestand as it works...
can you help me?