From the find man pages:
-mtime n
True if the difference between the file last modification time
and the time find was started, rounded up to the next full
24-hour period, is n 24-hour periods.
Could I do something like this for the line count?
Code:
if [ $linecnt -ge 5 ]
then ssh data@bart "find /home/data/backup -mtime 27 -exec rm ();"
fi
I've set it for 27 24-hour periods just to be safe. Is the syntax correct?
-Kristijan