- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- find and tar
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 09:43 PM
03-21-2007 09:43 PM
find and tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 10:27 PM
03-21-2007 10:27 PM
Re: find and tar
tar cvf /dev/st0 $(find /path -mtime +30)
This will find the files older than 30 days and send it to tape. You can play with the find command as you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 10:27 PM
03-21-2007 10:27 PM
Re: find and tar
try
# touch -t 0703200000 starttimefile
# touch -t 0703220000 stoptimefile
# tar cvf arc.tar $(find /path -type f \( -newer starttimefile -a ! -newer stoptimefile \) )
#if you have lots of files you may try:
#find /path -type f \( -newer starttimefile -a ! -newer stoptimefile \) | xargs tar rvf arc.tar
rgds
HGH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 10:57 PM
03-21-2007 10:57 PM
Re: find and tar
find tmp -type f -exec grep "tmp" {}\;
i get the this error.
find: missing argument to `-exec'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 11:00 PM
03-21-2007 11:00 PM
Re: find and tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2007 11:04 PM
03-21-2007 11:04 PM
Re: find and tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2007 11:40 AM
03-22-2007 11:40 AM
Re: find and tar
find .
The 'T' coupled with '-' takes the file-list from STDIN. This allows a more dynamic method (and not limited to command-line size) of creating an arcive.
That, or use 'cpio'.. ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2007 11:16 AM
03-23-2007 11:16 AM
Re: find and tar
It can read and write tar format.
But it is also very good at filtering which files will be written based on file names and modification times.
pax -w -T 02230000,02240000 /tmp > tmp.tar