All Questions
Tagged with maintenance scripting
3 questions
0
votes
0
answers
317
views
Script that groups backups by date then deletes files+folders older than X days
We have 30 days of backups = 30 folders, the backup runs hourly so in each of these folders, there are 24 files in each folder. We need to run a script that keeps the five latest dates of files.
For ...
2
votes
1
answer
1k
views
What's the Fedora equivalent of /var/lib/dpkg/info/[...].prerm?
Example file:
/var/lib/dpkg/info/util-linux.prerm
What's the Fedora equivalent of this file? (Not limited to util-linux - generic question for any package.)
Use case: A prerm script is failing. For ...
2
votes
1
answer
898
views
Script for courier maildir folders on CentOS LAMP environment
I'm looking for resources to help me build a script to do monthly maintenance of maildir folders for a typical CentOS LAMP VPS hosting environment.
I would like to run a script that runs from a ...