How to made a regular backup from the Cosmos node


#1

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


Syncing stopped; panic: Unkown pub key type
[52 Week Cosmos] Week #36, 2018
#2

Are you sure we can remove ./gaiad/data after backup.

if so , then how can we restore from hundreds daily backup?


#3

No need to lock write on DB for integrity ?!


#4

Are you sure we can remove ./gaiad/data after backup.

where i said that?


#5

no works my steps? are you saying you try and dont work?


#6

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.


#7

of course have to be gaiad stop. just added to the steps.


#8

Best solution it’s find solution for freeze state of DB for live backup, but not information for that


#9

Sorry, I mis-understanded . I thought the regular backup is a daily increment backup.


#10

no need sorry, each new file replaces the previous one. I am here for suggestions. ty.