Rev 6408 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/bin/sh#This script is used to send the latest of all database backups#to the test machine to be restored there.#First argument is the path to backup files and second is target machine.file=`find $1 -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "`echo $filescp $file root@$2:/root/