tar problem

Bruce Hunter freebsd at solisix.com
Thu Jul 1 19:29:32 PDT 2004


On Thu, 2004-07-01 at 22:23, Roop Nanuwa wrote:
> On Thu, 01 Jul 2004 20:36:44 -0400, Bruce Hunter <freebsd at solisix.com> wrote:
> > 
> > I am trying to archive this directory for backup purposes. I am getting
> > this error when trying to create a new tar file.
> > 
> > Solisix/
> > flipnode at solid$ su
> > Password:
> > flipnode at solid# tar -c Solisix/
> > tar: /dev/sa0: Cannot open: Operation not supported
> > tar: Error is not recoverable: exiting now
> > 
> > What is wrong? Permissions? I am root..
> > 
> 
> You need to specify the 'f' option to tell tar where to write the tar
> to, it's defaulting
> to /dev/sa0 which probably doesn't exist on your system.
> 
> Run:
> tar -cf Solisix.tar Solisix/
> 
> --roop

Thanks, I got it to work. How would I include the current system date
like this.

#tar -cvf Solisix-$USER.tar Solisix/	 <--- with current user..

I want the date instead..

#tar -cvf Solisix-$date.tar Solisix/     <-- doesn't work

I'm still learning.. sorry

Bruce



More information about the freebsd-questions mailing list