Re: Don't Quite Understand TAR and CPIO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 26, 2003 at 11:38:28PM -0400, Joe Polk wrote:
> find /mnt/win2k -name *.doc -print | cpio -ovB > <backup_filename>
> 
> <<JAV>>
> 
> ---------- Original Message -----------
> From: Randy Chrismon <rchrismon@xxxxxxxxxxxx>
> To: shrike-list@xxxxxxxxxx
> Sent: Fri, 26 Sep 2003 23:17:25 -0400
> Subject: Don't Quite Understand TAR and CPIO
> 
> > I'm wanting to make a tar-ball, or similar, backup of certain files 
> > on the Win2K (fat32) partition on my mostly RedHat box. For example, 
> > I'd like to backup (create a tar-ball) of the *.doc files on my 
> > Win2K partition, mounted at /mnt/win2k. From the documentation, it 
> > seems like CPIO is the choice using a find command; e.g.:
> > 
> > find /mnt/win2k/*.doc | cpio -o ...
> > 
> > This doesn't seem to work, however, in that the find command doesn't 
> > return the path/filename of the *.doc files I'm trying to archive.
> > 
> > What am I missing here?
> > 
> > Thanks.
> > 
> > -- 
> > Shrike-list mailing list
> > Shrike-list@xxxxxxxxxx
> > https://www.redhat.com/mailman/listinfo/shrike-list
> ------- End of Original Message -------
Except why would you make a tar ball using cpio. Why not use tar as
in:
find /mnt/win2k -name "*.doc" -print | tar cf backup.tar -

find will not work correctly without the quotes around the "*.doc"
You want find to expand the * not the shell.
-- 
-------------------------------------------
Aaron Konstam
Computer Science
Trinity University
715 Stadium Dr.
San Antonio, TX 78212-7200

telephone: (210)-999-7484
email:akonstam@xxxxxxxxxxx


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux