Subversion Repositories SmartDukaan

Rev

Rev 6408 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6411 anupam.sin 1
#!/bin/sh
2
#This script is used to send the latest of all database backups
3
#to the test machine to be restored there.
4
#First argument is the path to backup files and second is target machine.
5
file=`find $1 -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "`
6408 anupam.sin 6
echo $file
6411 anupam.sin 7
scp $file root@$2:/root/