LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rar extract files with the original owner, permissions etc. (https://www.linuxquestions.org/questions/linux-software-2/rar-extract-files-with-the-original-owner-permissions-etc-4175517954/)

kartoffel 09-09-2014 03:16 AM

rar extract files with the original owner, permissions etc.
 
Hello to all of you!

Currently I am trying to use rar in my small backup script and it seems that I am too dumb to add & recover the files with the owners etc.

OS in use: Debian Wheezy 7.6 (installed on a VPS on Ramnode)
Software version: RAR 4.00 beta 3

This is my compression command line (even though I have made simpler tests too):

rar a test2.rar @/home/user/bak.lst -m5 -rr10p -r -t -k

I have tried adding the "ow" switch, but I got error messages (e.g. WARNING: Cannot get /home/user/backtest-original/permission.txt owner and group ).

When I look at the rar files e.g. rar l test2.rar, I can see the permissions,
but the owners are not shown.

When extracting the files, the owner and group of all files is root:root, although it seems that the permissions are ok.

All my tests (compression and extracting) were done with the root user.

Does anyone here uses rar on Linux and can help me out? I would love to use rar for my backup as I am accustomed to it, if I need to switch to tar I need to use it with PAR2 too etc. and I would like to keep it simpler for me.

In any case, thank you very much for your time and help!

Cheers...


All times are GMT -5. The time now is 12:43 PM.