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

Re: Find and copy script/piped command



A. John Peters writes....
> 
> On 10/30/03 1:00 PM, "Waldher, Travis R" <Travis R Waldher boeing com>
> wrote:
> 
> >> I am trying to copy all files changed in the last 24 hours to
> >> a new directory.
> >> 
> >> find /home/Nursery -mtime -1
> >> I want all the results copied to todays directroy
> >> cp {results} /home/Thursday/
> >> 
> >> If I have to I can tar with a z option.
> >> 
> >> Any hints?
> > 
> > Is this for backup purposes?  If so, wouldn't you want to preserve the
> > directory paths?
> > 
> > 
> > 
> 
> Actually the original dir is the backup.  This is a temp. copy for quick
> access restore.

So I would think you would want to preserve the dir structure.
I would go with tar or cpio

> 
> 
> 
> 
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list redhat com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request redhat com
> Subject: unsubscribe
> 


-- Jay Crews
jpc jaycrews com




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