./spd -M gctwh
./spd -d /Metadata -M gctwh
./spc host -v
if you see your Provider ID doesn’t match what it was before. Or that you see no storage folders at the bottom of the output. These are all signs you have started spd with a new or different set of metadata. At this point you need to stop spc using ./spc stop
and figure out where you have gone wrong as the situation is recoverable. If you for example add your storage folders back in, then you will lose any data in them and that won’t be recoverable.sudo find / -name consensus.db
[email protected]:~/ScPrime/ScPrime-v1.6.0-linux-amd64$ sudo find / -name consensus.db
[sudo] password for scprime:
find: ‘/run/user/1000/gvfs’: Permission denied
/mnt/USB_Backup/metadata_backup/consensus/consensus.db
/home/scprime/.scprime/consensus/consensus.db
#!/bin/bash
SPD_DATA=$HOME/.scprime
SCPRIME=$HOME/ScPrime/ScPrime-v1.6.0-linux-amd64
# first stop spd
$SCPRIME/spc stop
# copy metadata folder to backup location
cp -r $SPD_DATA/* /mnt/USB_Backup/metadata_backup/
# start spd in the same way as normal
nohup $SCPRIME/spd --host-addr :44282 --host-api-addr :44283 -d $SPD_DATA -M gctwh &
# unlock wallet
sleep 5s
SCPRIME_WALLET_PASSWORD=`cat $HOME/ScPrime/.seed`
export SCPRIME_WALLET_PASSWORD
$SCPRIME/spc wallet unlock
chmod 755 metadata_backup.sh
./metadata_backup.sh
crontab -e
@daily /home/scprime/ScPrime/ScPrime-v1.6.0-linux-amd64/metadata_backup.sh