4

Need to vaidate SCP move

view full story
linux-howto

http://www.linuxquestions.org – Hey, I am new to Linux and I am developing my first script. Yay for me that the copy works, however i need to write some logic into it to "validate the files i moved are on both the source and destination, BEFORE i remove the files from the source" Any help would be appreciated find /source -mtime +3 -type f | grep file.log |xargs -i scp '{}' DestinationServer:/destination location 2>/dev/null echo $? (HowTos)