Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


I will tell how i'm doing this now (backup).

I have my local computer, and server.

I log into server, and mount my local computer (folder) via sshfs.

Create .rar backup archive direct to sshfs remote folder.

After copy, close my ssh sessions.

And use my streamer to backup files stored by server.

I'm wondering, is there any way to share streamer /dev/st0 via ssh session ?

Any idea how can i start backup direct to (remote) -> root@server/dev/st0


share|improve this question

from server:

tar -cvf - /dir/to/backup | ssh you@yourmachin "mt -f /dev/st0 rewind;cat >> /dev/st0"

share|improve this answer
Hmmm, look dangerous ? usualy i use<pre>tar -cvpWlf /dev/st0 filetobackup</pre> to perform backup. It will verificate tape after writing. – marcell22 Nov 21 '10 at 20:53
You're cobbling together your own solution; I wouldn't be surprised if wasn't as robust as a designed solution. Perhaps you could pipe the output of tar through md5sum or some other quality checksum utility and then transmit that to compare. – Slartibartfast Nov 21 '10 at 21:05
@marcell22 With this solution, you can't verify (it's a one-way pipe). Quoting the GNU/tar manual: "Verification requires that the archive be on a back-space-able medium. This means pipes, some cartridge tape drives, and some other devices cannot be verified." – shellholic Nov 21 '10 at 21:05

If you want something more robust than what shellholic suggested, you can't use simple SSH and piping. Consider using Amanda, or any number of other network-aware backup applications.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .