1

Using rsync in the normal way copies the entire blockchain to backup every time new blocks are added. To get around this, I used the --append flag, however even though the size of the backup is the same as the newly updated blockchain, if I run monerod connected to the backup, it does not show the backed up blockchain as synced. So, is there a way to back up my blockchain incrementally in a way that the backed up blockchain will be usable and correctly synced?

This post does not give a correct answer as that simply copies over the whole blockchain every time that rsync command is run, which does not help at all.

i9pp0
  • 113
  • 3

1 Answers1

2

There are two included tools that can help here: monero-blockchain-export and monero-blockchain-import.

If you backup (i.e. export) to a bootstrap file (a .raw file, the default), it keeps track of its current height and thus subsequent exports will simply append to the output file.

Upon restoration (i.e. import), if your database already exists, the default is to resume importing from the current height.

jtgrassie
  • 19,601
  • 4
  • 17
  • 54