Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-01-2008, 02:41 PM   #1
LQ Newbie
Registered: Sep 2008
Posts: 4

Rep: Reputation: 0
Question Unable to exclude with tmpwatch

Running Red Hat Enterprise Linux 4 on Dell PowerEdge 2950 setup to be an FTP server. Have all departments setup to copy their files to their own /home/user directory. Currently have a clean_home job in /etc/cron.weekly that runs: /usr/sbin/tmpwatch -m 168 /home/*/ |grep -v mydir.
Originally I ran /usr/sbin/tmpwatch -x /home/mydir -m 168 /home/*/.
The intent is to keep any files in /home/mydir from being removed along with all the other /home directories files. BUT, neither one of these commands are performing as desired. My files are still being removed.
How can I correct this problem? Occasionally, a particular department may ask that their files remain for more than 7 days and I need to be able to accommodate them.
All help is greatly appreciated.
Old 03-04-2009, 10:47 AM   #2
LQ Newbie
Registered: Sep 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Since I did not receive any further guidance on this issue, I ended up creating individual entries in my clean_home job.
Such as: /usr/sbin/tmpwatch -m 168 /home/user1
/usr/sbin/tmpwatch -m 168 /home/user2
/usr/sbin/tmpwatch -m 168 /home/user3
etc, etc.
Now if someone needs longer time on their files, I change them individually.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
du exclude pvracko Linux - General 9 08-14-2008 04:01 AM
Periodic cleanup of folder through Crontab with tmpwatch Angelic_Mew Linux - Newbie 7 11-20-2007 12:25 PM
Always Exclude in Updates iXneonXi Ubuntu 2 01-06-2007 08:34 PM
tar --exclude --exclude-from cefn Linux - Software 4 10-11-2005 08:31 PM
tar exclude-from drisay Slackware 1 12-23-2004 02:10 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration