Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tar: Failed to open '/dev/sa0' error in FreeBSD [closed]

Tags:

bash

tar

freebsd

I have a bash code below under FreeBSD:

tar -c file1 > file1.tar

It gives below error when I run it. Do you know how can I fix it?

tar: Failed to open '/dev/sa0'
like image 790
ibrahim Avatar asked Dec 31 '11 10:12

ibrahim


1 Answers

I suggest passing -f - to tar (in addition of the other arguments) to indicate that the tar file you want to create is the stdout stream.

tar -f - -c file1 > file1.tar
like image 73
Basile Starynkevitch Avatar answered Nov 05 '22 16:11

Basile Starynkevitch