LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 03-17-2010, 10:53 AM   #1
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,933
Blog Entries: 1

Rep: Reputation: 188Reputation: 188
zfs send to tape backup


Testing a "backup to tape" scenario for zfs...

I am getting this error when trying to send a snapshot to tape for backup...

Code:
root@host# zfs send pool/bkuptest@full | tar -cvEfb /dev/rmt/0cn 20 - 
tar: -: No such file or directory
Any ideas? Comments? Concerns? Help?



-C
 
Old 03-17-2010, 04:42 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,482

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Tar is expecting a file or directory name so '-' isn't supported in this position. Why aren't you using dd to write the stream to the tape ?
 
Old 03-17-2010, 05:50 PM   #3
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,933
Blog Entries: 1

Original Poster
Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by jlliagre View Post
Tar is expecting a file or directory name so '-' isn't supported in this position. Why aren't you using dd to write the stream to the tape ?
At this point I'm just experimenting...although I found that this works perfectly...

Code:
zfs send pool/bkuptest@full > /dev/rmt/0
zfs recv pool/recover < /dev/rmt/0
-C
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Suggestions for Incremental Backup System on CentOS (ZFS, ext3cow, wayback...?) Jessard Linux - Software 4 11-19-2008 10:06 AM
How to backup more than one time on same tape using DLT tape? hocheetiong Linux - Newbie 3 01-30-2008 06:54 AM
zfs send/recv not working though ssh custangro Solaris / OpenSolaris 12 12-19-2007 07:38 PM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 09:15 AM
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 09:42 PM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration