when the blockchain is growing and doesn’t want to losses time sync from scratch; need to have a backup from this folder (data) the steps are the following.
Need STOP gaiad first.
cd .gaiad
tar -czvf data.tar.gz data
Now have a Backup file
data.tar.gz
when do a new backup file just need to delete this file (data.tar.gz) and create a new one again, repeat the steps to create.
if you need using the backup file someday
cd .gaiad
rm -rf data
tar -xzf data.tar.gz
start gaiad
have to start since the last block in the backup file.
.
always is good have a regular backup file today in case need tomorrow.
*Note: if not work, just tell me what step and what error. ty
It’s query, quid of DB integrity if gaiad write on DB between the tar running, the DB it’s corrupted ?
for me this procedure it’s safe only if gaiad it’s down.