#!/bin/sh
mount /dev/sdb5 /mnt/usb
sleep 10s
cd /var/spool/hylafax/
cp -pu /var/spool/hylafax/docq/*.* /mnt/usb/docq/
sleep 30s
find /var/spool/hylafax/docq/ -mtime +3 -name "*.*" -exec rm -rf {} \;
sleep 5s
cp -pu /var/spool/hylafax/recvq/*.* /mnt/usb/recvq/
sleep 30s
find /var/spool/hylafax/recvq/ -mtime +3 -name "*.*" -exec rm -rf {} \;
sleep 5s
umount /mnt/usb
阅读(926) | 评论(0) | 转发(0) |