Bug#160743: efficient local package cache backup for autoclean/clean
On Tue, Apr 20, 2004 at 01:45:13AM +0200, Osamu Aoki wrote:
> We all know
>
> # apt-get autoclean
> clean local cached package files. (or apt-get clean)
>
> But simply doing this is too aggressive to my taste.
>
> (We lose older but recent packages which may be the ones needed for
> recovering from recent broken upgrade process.)
>
> Attached simple script run from cron job daily or weekly seems to ease
> this issues. (I just wrote it. So some tuning and debug are needed.)
>
> If APT offers standard script along this kind of backup using hardlinks,
> it may be interesting.
I use something like this in cron.daily:
find /space/cache/apt/archives -type f -atime +5 \
| xargs --no-run-if-empty rm
--
- mdz
Reply to: