Re: pkgsave cleanup

2023-11-12 Thread Matthew Seaman
On 11/11/2023 19:00, Roger Marquis wrote: For those who are concerned about backup files being left in non-backup directories this small script will cleanup .pkgsave files:   DBPATH=/var/db/pkgsave/`date +%G%m%d%H%M`   if [ ! -d $DBPATH ]; then   mkdir -p $DBPATH   fi   for f in `find

Re: pkgsave cleanup

2023-11-11 Thread Roger Marquis
For those who are concerned about backup files being left in non-backup directories this small script will cleanup .pkgsave files: DBPATH=/var/db/pkgsave/`date +%G%m%d%H%M` if [ ! -d $DBPATH ]; then mkdir -p $DBPATH fi for f in `find / -type f -name \*.pkgsave` ; do fori="`ec