HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- logrotate question
Operating System - HP-UX
1834018
Members
2008
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
10-04-2006 04:02 AM
10-04-2006 04:02 AM
logrotate question
Hi all:
For a certain set of apps, I make a tar ball that is then backed up to tape. The tar balls I make are stored on disk with the $DATE as part of the file name.
Since the files are named differently each day the logrotate just keeps renaming them 'myapp.20061001.tgz.1 myapp.20061002.tgz.1.1 myapp.20061003.tgz.1.1.1 myapp.20061004.tgz.1.1.1.1 etc.'
Here is the logrotate stanza;
/home/backup/myapp* {
rotate 8
daily
mail me@work.com
}
Or, am I going to run through a script that is checking the dates?
Thanks
For a certain set of apps, I make a tar ball that is then backed up to tape. The tar balls I make are stored on disk with the $DATE as part of the file name.
Since the files are named differently each day the logrotate just keeps renaming them 'myapp.20061001.tgz.1 myapp.20061002.tgz.1.1 myapp.20061003.tgz.1.1.1 myapp.20061004.tgz.1.1.1.1 etc.'
Here is the logrotate stanza;
/home/backup/myapp* {
rotate 8
daily
mail me@work.com
}
Or, am I going to run through a script that is checking the dates?
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2006 04:16 AM
10-04-2006 04:16 AM
Re: logrotate question
You'll be processing those yourself separately, I think. Logrotate is intended for rotating logs that will have and will retain the same name over time.
--
Jeff Traigle
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2006 04:53 AM
10-04-2006 04:53 AM
Re: logrotate question
Yes - logrotate expects to see the same filename.
So, if you want logrotate - then get rid of the $DATE in the tarball.
Change to say something like myapp.dailey.tgz
Rgds...Geoff
So, if you want logrotate - then get rid of the $DATE in the tarball.
Change to say something like myapp.dailey.tgz
Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2006 07:05 AM
10-04-2006 07:05 AM
Re: logrotate question
That's what I thought - just wanted to double check
Thanks folks!
Thanks folks!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP