If I copy files with backup (cp --backup=numbered), the old file is renamed to something like oldfile.ext.1. I get my old files. Can this be limited to a certain number of old files, for example 30? I don’t want to have keep more than that…
If I copy files with backup (cp --backup=numbered), the old file is renamed to something like oldfile.ext.1. I get my old files. Can this be limited to a certain number of old files, for example 30? I don’t want to have keep more than that…
With
cp
, I don’t think so. But I guess you could try using logrotate for that