Operating System - HP-UX
1834187 Members
2939 Online
110064 Solutions
New Discussion

Re: redirection with tar command

 
SOLVED
Go to solution
MR VILLOT   MR MONTAGNE
Frequent Advisor

redirection with tar command

Hi,

I use this command to do a backup :
tar cvf - /datas/test | gzip -c > test.tar.gz
I would to get a logfile to be sure that all datas are backuped.
I tried with a redirection :
tar cvf - /datas/test | gzip -c > test.tar.gz > verify.log
but it does not work.
How can I do ?

Thanks
Laurent
1 REPLY 1
Massimo Bianchi
Honored Contributor
Solution

Re: redirection with tar command

(tar cvf - /datas/test | gzip -c > test.tar.gz ) > tar.log 2>&1


tested.
Massimo