LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-13-2011, 03:27 PM   #1
mnauta
Member
 
Registered: Apr 2003
Posts: 152

Rep: Reputation: Disabled
tar to remote tape without password prompt


I need backup files to a tape drive on a remote server without being prompted for password.

I got the part working to tar files to the remote tape drive like this:
Code:
tar czfv - /data/home/users/manuel/Volunteer | ssh user@192.x.x.x "cat > /dev/st0"
currently I got rsync to work with out being prompted for password like this:
Code:
rsync -aqH --delete -e "ssh -i /root/rsync-key" /var/opt/ user@192.x.x.x:/var/opt
How can I get the above tar command to work like the rsync command so it does not prompt me for a password.
 
Old 06-13-2011, 03:32 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Same idea. Just provide the Identity file to ssh(1) in your pipeline.
 
Old 06-13-2011, 03:38 PM   #3
mnauta
Member
 
Registered: Apr 2003
Posts: 152

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by anomie View Post
Same idea. Just provide the Identity file to ssh(1) in your pipeline.
I am having problems placing it in the right spot. Where should it go?
 
Old 06-13-2011, 03:43 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
It's an option to ssh(1), so it should follow...
Code:
ssh -i ...
 
Old 06-13-2011, 03:46 PM   #5
mnauta
Member
 
Registered: Apr 2003
Posts: 152

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by anomie View Post
It's an option to ssh(1), so it should follow...
Code:
ssh -i ...
Thanks, it's working now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Tar file to tape drive faster than dir/files to tape drive? Runge_Kutta Linux - General 2 03-11-2009 07:13 AM
Problem: tar Backup to Remote Tape Drive HaroldWho Linux - Software 8 07-30-2008 12:05 PM
Problem with dd and tar to tape hastur Linux - Software 0 10-22-2004 07:38 AM
HELP, corrupted tar tape Paul_assheton Linux - General 1 01-20-2004 10:37 AM
remote command over ssh, password prompt linowes Linux - General 2 10-27-2002 08:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration