Linux Operating System (MOSC)

MOSC Banner

Crontab Command in Linux

edited Jun 8, 2018 10:17AM in Linux Operating System (MOSC) 4 commentsAnswered ✓

OS: RH 6.8

Question: I have 2 crontab jobs on my Linux Server. 1 runs backups, 1 deletes older backups files. Following is the crontab job that deletes backups.  I am confused about + 2 number.  Can you explain it to me what does it means?

I want to keep 7 days of backups. Should I change it from 2 to 7 ?  Thank you for your help and time.

35 03 * * 1 find /backups -type f -mtime +2 -exec rm -rf {} \;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center