Saturday, January 3, 2015

find and scp file to another host

$ ls -laih  file.outernet.log
22806


$ find . -inum 22806 -exec scp {} jay@192.168.10.110:/opt/apps/ \;
$ find $DIR -type f -mtime +$DAYS -exec scp -r -p -P52900 {} jay@192.168.10.110:/opt/data/ \; &

No comments:

Post a Comment