ls4sweep for ALTLinux

ls4sweep should be used as helper for removing extra old daily-created backups.

Sweeping policy consists from the set of records, where each record contains the count of intervals (or periods) and the length of one period (in days). ls4sweep checks creation or modification time of given files and displays names of those when they mismatch policy. Only one file is keeping in each interval.

Consider following command: ls4sweep 3:1,2:3,2:10,2:30,3:90,5:365 *.zip This means:

ls4sweep output can be directly passed to '| xargs -r /bin/rm -f' command. When you create archives via cron(8), you can put cleanup via ls4sweep call after creation.

Source files

FilenameSize
ls4sweep-0.3.0.tar.gz16362
ls4sweep.spec3457

RPM packages (source and binary)

PackageSizeMD5
ls4sweep-0.3.0-alt1.src.rpm2294968c1d6eba9957dc9126d1007e9ef05ed
ls4sweep-0.3.0-alt1.i586.rpm18431ccd2d6550a9f3c2d8aa7d6e14a630d2c

Last changed at 12 January 2009 MSK 13:04
Have comments? Mail me.

Хостинг от uCoz