- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Scripting Help
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
01-14-2004 05:39 AM
01-14-2004 05:39 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 05:42 AM
01-14-2004 05:42 AM
Re: Scripting Help
find /directory_name -type f -mtime +1 -exec your_copy_command {} \;
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 05:45 AM
01-14-2004 05:45 AM
Re: Scripting Help
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x026250011d20d6118ff40090279cd0f9%2C00.html&admit=716493758+1074105787215+28353475
and
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x836cc1c4ceddd61190050090279cd0f9%2C00.html&admit=716493758+1074105884502+28353475
and
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050
Enjoy the reading !
Rgds,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 05:50 AM
01-14-2004 05:50 AM
Re: Scripting Help
find /directory_name -type f -mtime +1
I would save them to a file and then use that file in your copy script:
find /directory_name -type f -mtime +1 > /tmp/changed_files
then reference /tmp/changed_files in your copy script to rcp or ftp them to a new server.
If you had space you could even tar them into a tarball and then just ftp the tarball to the other server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 06:07 AM
01-14-2004 06:07 AM
Re: Scripting Help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 06:49 AM
01-14-2004 06:49 AM
Solutionfind DIR -mtime DATE -type f>>/tmp/filenames
Then use tar to copy them into a tarball:
tar cvf /tmp/tarball 'cat /tmp/filenames'
This tarball can be copied off to tape directly; transferred to another machine with ftp, rcp, or scp; or compressed with gzip and left there as an archive.
Good luck
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 07:54 AM
01-14-2004 07:54 AM
Re: Scripting Help
# tar -cvf utldir.tar 'cat /tmp/utldir.log'
tar: cannot open cat /tmp/utldir.log
The file /tmp/utldir.log does exsist. I can do a more on it.
Any suggestions. I have never used tar with a file before.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2004 08:19 AM
01-14-2004 08:19 AM