Linux in General > Linux Tutorials & How To's

Cut off every 7 days

(1/1)

ana45:
Hi,

I am a trainee Linux administrator in my company and still a newbie. How do I set the cron job to only show the current week's backup (in the database backup directory) and remove the previous week's backups.

One week would mean Monday to Saturday.

Pls help.

Tqs.

Navigation

[0] Message Index

Go to full version