- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: find and tar backup the data on different dire...
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
07-24-2003 01:06 AM
07-24-2003 01:06 AM
find and tar backup the data on different directories they have updated on April, May, June, Jul
Regards
Ajk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 01:08 AM
07-24-2003 01:08 AM
Re: find and tar backup the data on different directories they have updated on April, May, June, Jul
I did try "find / +atime -114 -exec ll {} \;" didn't work.
Ajk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 01:17 AM
07-24-2003 01:17 AM
Re: find and tar backup the data on different directories they have updated on April, May, June, Jul
U Can run the cmd
#/bin/ksh
# To See All Files
ll ${DIR} |grep -e Apr -e Nov |awk '{print $NF}' >/tmp/file
# To Backup The Files
for file in `cat /tmp/file`
do
tar -cvf /dev/rmt/0mn # n for no rew
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 01:42 AM
07-24-2003 01:42 AM
Re: find and tar backup the data on different directories they have updated on April, May, June, Jul
I did try "ll ${DIR} |grep -e Apr -e May -e Jun -e Jul", it includes some other years' files. Is it possible to include this year's files of those months only? Thanks!
Ajk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 01:49 AM
07-24-2003 01:49 AM
Re: find and tar backup the data on different directories they have updated on April, May, June, Jul
If you try to make a find, you obtain the directories as well as files modified, so a ll list everithing, you can try with this:
find / -type f -atime -114 -exec ll {} \;
if you want tar this files you could try:
find / -type f -atime -114 -print | xargs tar cvf file.tar
Be carefully because the file.tar could be tared inside itself in a bad status.
HTH
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 03:35 AM
07-24-2003 03:35 AM
Re: find and tar backup the data on different directories they have updated on April, May, June, Jul
U Can run the cmd
#/bin/ksh
# To See All Files
ll ${DIR} |grep -e Apr -e Nov |grep : |awk '{print $NF}' >/tmp/file
# To Backup The Files
for file in `cat /tmp/file`
do
tar -cvf /dev/rmt/0mn # n for no rew
done
add the grep : and u will get only this year files .
Eitan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 05:25 AM
07-24-2003 05:25 AM
Re: find and tar backup the data on different directories they have updated on April, May, June, Jul
This is quite simple if you use 'find' with the '-newer' argument and two "reference" files to delimit your date boundries:
# touch -amt 03312359 /tmp/ref1
# touch -amt 08010000 /tmp/ref2
# find /tmp -xdev \( -type f -a -newer /tmp/ref1 -a ! -newer /tmp/ref2 \)
Note that a space character follows the delimited open parentheses and prceeds the delimited close parentheses.
Regards!
...JRF...