LINUX.ORG.RU
$ man find
........
-atime n
              File was last accessed n*24 hours ago.  When  find  figures  out
              how  many  24-hour  periods  ago the file was last accessed, any
              fractional part is ignored, so to match -atime +1, a file has to
              have been accessed at least two days ago.

       -cmin n
              File's status was last changed n minutes ago.

       -cnewer file
              File's status was last changed more recently than file was modi‐
              fied.  If file is a symbolic link and the -H option  or  the  -L
              option  is  in  effect,  the  status-change  time of the file it
              points to is always used.

       -ctime n
              File's status was last changed n*24 hours ago.  See the comments
              for -atime to understand how rounding affects the interpretation
              of file status change times.
.......
imb ★★
()
# чистим архивы старше чем 1440 минуты = 24 часа            72 часа = 4320 минуты
#                                                    в месяце  -   31*24*60 =  44640 минут
    find /mnt/raid0/backup/box -name "*.tar.bz2" -mmin +44690 -delete
sin-ok
()
Ответ на: комментарий от shtain

мне нужно это в скрипте сделать, хотелось по проще.
ls -tr | tail -1 Она же только отображает, а как скачать то?

Alick
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.