g1-stats/restore-bk.sh

9 lines
201 B
Bash
Executable File

#!/bin/bash
cacheFile=$(ls cache/bk-walletsUp-* | tail -n1)
cacheID=$(echo $cacheFile | awk -F '-' '{ print $NF }')
cp $cacheFile cache/walletsUp-$cacheID
cp db/bk-recus.json-$cacheID db/recus.json