g1-stats/restore-bk.sh

9 lines
201 B
Bash
Raw Normal View History

2020-09-15 04:05:07 +02:00
#!/bin/bash
cacheFile=$(ls cache/bk-walletsUp-* | tail -n1)
2020-09-15 04:05:07 +02:00
cacheID=$(echo $cacheFile | awk -F '-' '{ print $NF }')
cp $cacheFile cache/walletsUp-$cacheID
cp db/bk-recus.json-$cacheID db/recus.json
2020-09-15 04:05:07 +02:00