find /zsb/ -mtime +0 -name "*.log" -exec gzip {};
#!/bin/bash
find /root/ -mtime +30 -name "*.log" -exec cp {} /zsb/ ;
find /zsb/ -mtime +-1 -name "*.log" -exec gzip {} ;
find /root/ -mtime +30 -name "*.log"
find /zsb/ -mtime +0 -name "*.log" -exec gzip {};
#!/bin/bash
find /root/ -mtime +30 -name "*.log" -exec cp {} /zsb/ ;
find /zsb/ -mtime +-1 -name "*.log" -exec gzip {} ;
find /root/ -mtime +30 -name "*.log"