<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi,</DIV>
<DIV> </DIV>
<DIV> I have a DNS server running in BIND. I executed to take backup of configuration and zone files as below and its working fine.</DIV>
<DIV> </DIV>
<DIV># /bin/tar -pczvf named.tar.gz /etc/ /var/named --exclude='/var/named/chroot/var/named/data' --exclude='/var/named/chroot/proc'</DIV>
<DIV> </DIV>
<DIV>But what happens is when i executed below command to restore the backup on the freshly OS installed machine under /root directory, command is excecuted successfully but what i found that there is a directory called /etc and /var created under /root as below</DIV>
<DIV> </DIV>
<DIV>drwxr-xr-x 91 root root 12288 Jun 18 07:50 etc<BR>-rw-r--r-- 1 root root 7390955 Jun 19 05:04 named.tar.gz<BR>drwxr-xr-x 3 root root 4096 Jun 19 15:54 var</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Can anyone let me know how can i restore all the files into its original location?<BR></DIV>
<DIV> </DIV>
<DIV> </DIV></td></tr></table>