3 echo "Ran restore script with $@"
7 export PATH=$rundir:/bin:/usr/bin
10 echo >&2 "Usage: $0 <source-directory> <target-directory>"
11 echo >&2 "Example: $0 / /"
15 # Get the device with the CD in it here
16 device=$(mount | grep "on $mountdir " | awk '{print$1}')
18 cp $mountdir/backups.db $mountdir
20 for date in $(cat $dbfile | list-dates.sh); do
22 echo >&2 "Please insert backup disk: $date"
23 echo >&2 "Then press any key"
26 # rsync-cmd.sh won't work here in its current encarnation
27 cat $dbfile | files-from-date.sh | rsync-cmd.sh $1