Skip to content
Cosmopediaby Unity Nodes
DiscussionsValidationHow to made a regular backup from the Cosmos nodeForum ↗

How to made a regular backup from the Cosmos node

Validation10 posts2,050 views4 likesLast activity Aug 2018
ME
melea-trustOP
Aug 2018 2

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

PI
ping
Aug 2018

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

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

PR
PROceau
Aug 2018

No need to lock write on DB for integrity ?!

ME
melea-trust
Aug 2018

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

where i said that?

ME
melea-trust
Aug 2018

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

PR
PROceau
Aug 2018 1

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.

ME
melea-trust
Aug 2018

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

PR
PROceau
Aug 2018

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

PI
ping
Aug 2018 1
melea-trust:

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

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

ME
melea-trust
Aug 2018
ping:

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

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

← Back to Discussions