• Hi,
    If things go utterly wrong, and all I can do is restore an older backup, what would be lost? I mean apart from obvious WP things like any users who signed up since the backup.

    The transactions made internally would be lost, but the wallet balances are on coinhive or the blockchain I think, so what would happen when the internal database doesn’t match the balances on chain?

    Just wondering!
    Thanks
    Andy

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dashed-slug.net

    (@dashedslug)

    Hello Andy,

    If you lose the transactions then the balance will still be on the site’s wallet but will not belong to any users.

    You can protect yourself from this by backing up your database regularly. There is also a feature that lets you export the transactions to csv files, you can test it before disaster strikes.

    The coin adapters are designed to re-discover the latest few deposit transactions even if they are lost in the database, but you cannot rely on this to rediscover all the transactions from the beginning of time, and internal transactions cannot be re-discovered. Hence the need to keep backups.

    Think about it this way: Blockchains are the distributed, fault tolerant solution to centralized databases. Whenever you perform transactions in the plugin,
    you record transactions in a centralized database and therefore you lose the benefits of blockchains, i.e. fault-tolerance, decentralization, etc. But you gain control on your website. You are therefore responsible to maintain that database until the funds are again withdrawn from your site. It’s a trade-off.

    Hope this answers your question.

    kind regards
    Alex

    Thread Starter clickforcharity.net

    (@friendsvps)

    Yes, a good answer thanks! I’ll look into cron, I can probably have it back up the database every hour or so, and keep x number of copies, for a few days’ worth just to be sure.

    Plugin Author dashed-slug.net

    (@dashedslug)

    Yes, mysqldump is your friend.

    Perhaps you can also take some ideas from this post on my personal blog: https://www.alexgeorgiou.gr/poor-mans-guide-backup-wordpress-droplets/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Rampenplan! What happens in worst-case scenario?’ is closed to new replies.