• # Re

    Posté par . En réponse au message ssh et backup. Évalué à 2.

    Comme le dit baud123, un find suffit:

    [root@senso-rezo]:/var/backups/remote/rei.tarball# find . -mtime +1
    ./tarball-2007年06月14日.tar.gz
    ./tarball-2007年06月16日.tar.gz
    ./tarball-2007年06月15日.tar.gz
    ./tarball-2007年06月17日.tar.gz
    [root@senso-rezo]:/var/backups/remote/rei.tarball# ls
    tarball-2007年06月14日.tar.gz tarball-2007年06月16日.tar.gz tarball-2007年06月18日.tar.gz
    tarball-2007年06月15日.tar.gz tarball-2007年06月17日.tar.gz tarball-2007年06月19日.tar.gz


    donc, en gros, find -mtime +x -exec rm {} \;