LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


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

Rep: Reputation: 209Reputation: 209Reputation: 209
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: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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 , RHEL
Posts: 1,979

Original Poster
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
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



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

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:53 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