The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woop/scripts/package/harmony-rclone.sh

14 lines
337 B

#!/bin/bash
if [ $# != 1 ]; then
echo "usage: $0 datadir"
exit 1
fi
HARMONY_HOME="$1"
sudo -u harmony mkdir -p ${HARMONY_HOME}/archive
for i in 0 1 2 3; do
sudo -u harmony rclone sync -vvv hmy:pub.harmony.one/mainnet.min/harmony_db_$i ${HARMONY_HOME}/archive/harmony_db_$i > ${HARMONY_HOME}/archive/archive-$i.log 2>&1
done