1820644 Members
2182 Online
109626 Solutions
New Discussion юеВ

tar backup

 
Fadia Almarei
Super Advisor

tar backup

Dear All
i have two Redhat 9 Linux servers i connect a DLT tape drive to one of them i do the backup from the two servers in different times directly from the first one and remontly from the other at the same tape.
1-from the directly connected tape i execute the command
tar cvf /dev/nst0 /dirctory containing the file
2-and for the remotly backup
tar cvf ServerName:/dev/nst0 /derectory containing the file
when i try to see the contant of the tape i execute
tar tvf /dev/nst0
the output appers to be just the backuped file from the first command.
so is what i do is correct and how to make sure that every thing is OK.
BR,
Fadia
fadia.marei
5 REPLIES 5
Huc_1
Honored Contributor

Re: tar backup

Fadia
If you get no error executing the remote tar then probably the remote tar backup is on tape!

To see this try the following

#mt /dev/st0 rewind
#tar -tvf /dev/nst0
(you should see the first local tar) after this is finished it's display.
#tar -tvf /dev/nst0
(you should see the remote second tar)

you can also go derectly to the seconf file like this!

#mt /dev/st0 rewind
#mt /dev/sto fsf 1
#tar -tvf /dev/st0

have a look at man mt for more in depth info

Jean-pierre Huc
Smile I will feel the difference
Fadia Almarei
Super Advisor

Re: tar backup

it does not work, it give me the first data which i backup directly from the server that the DLT tape drive connected ,and there is no error in the backup from the remote backup so what should i do
fadia.marei
Gopi Sekar
Honored Contributor

Re: tar backup


are you able to see list of files flowing through screen when u do remote backup (since you are using v option, u shd be able to see).

if you are doing it from a script, check the return value of the tar command and see whether it is 0 or something else.

i believe for remote tar backup you need to have rhosts file entry.

Hope this helps,
Gopi
Never Never Never Giveup
Fadia Almarei
Super Advisor

Re: tar backup

my remote backup configured correctly and i do the backup using the a cron job and the output is going well ,and every thing seems to be OK but when i list the output from the tape it does not appear
fadia.marei
Gopi Sekar
Honored Contributor

Re: tar backup


ok. just to ensure it actually writes, try running the second remote write command alone on a new tape and after writing try to list the tape. if it lists then it means remote writing is success only it is failing when it is executed after local write.

if you still can not list then it is obvious that something wrong in remote writing.

Hope this helps,
Gopi
Never Never Never Giveup