1825771 Members
2073 Online
109687 Solutions
New Discussion

Re: remote tar

 
SOLVED
Go to solution
Steve Reynolds
Frequent Advisor

remote tar

I would like to tar to a tape drive that
is connected to another host.
Can this be accomplished?

Thanks
6 REPLIES 6
Sandor Horvath_2
Valued Contributor
Solution

Re: remote tar

Hi !

Try it :
find ... | tar cvf - | remsh host "dd of=/dev/rmt/0m obs=10k"

regards, Saa
If no problem, don't fixed it.
melvyn burnard
Honored Contributor

Re: remote tar

if you are not tied down to using tar, you could use fbackup, as this is designed to do exactly that.
man fbackup
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Dan Hetzel
Honored Contributor

Re: remote tar

Hi Steve,

The command given by Sandor will work...
providing your systems are properly setup for remote commands.
Make sure that on the remote system (with the tape drive), the /.rhosts file (if you are root) has an entry for the system you're archiving files from.

Best regards,

Dan

PS: the find isn't absolutely necessary, you may use tar 'as-is' like in
tar cvf - file [file|directory] ... | remsh remote_host -n "dd of=/dev/rmt/xxx obs=10K"
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Darrel Louis
Honored Contributor

Re: remote tar

Hi,

Try the following:
a. To write remotely on that machines /dev/rmt/0m

tar cv . | remsh dd of=/dev/rmt/0m bs=10k

b. To read remotely on remote's /dev/rmt/0m

remsh dd if=/dev/rmt/0m |tar xvf -

Good Luck

Steve Reynolds
Frequent Advisor

Re: remote tar

Thanks for the responses, I appreciate it.
I had done the remote fbackup, but the user
in this case has their mind set on tar.


Richard Darling
Trusted Contributor

Re: remote tar

I backup files from my g40 to my L1000 using fbackup from SAM. I have the g40 directory to backup mounted on the L1000 using NFS. In the "Select Backup Scope" screen I select "Cross NFS Mounts - YES", and enter the files I want to backup. For example; I have the /tmp directory from the g40 mounted as /tmp/g40. The entry to backup would then be:
/tmp/g40/.

Hope this helps...RD