Skip to content

Instantly share code, notes, and snippets.

@DaniruKun
Created April 9, 2021 13:27
Show Gist options
  • Save DaniruKun/98846fbd2a366ded22bc36fb343b7649 to your computer and use it in GitHub Desktop.
Save DaniruKun/98846fbd2a366ded22bc36fb343b7649 to your computer and use it in GitHub Desktop.
Simple Elixir mnesia table backup
{:ok , name, nodes} = :mnesia.activate_checkpoint([{:max, :mnesia.system_info(:tables)}])
:ok = :mnesia.backup_checkpoint(name, 'backup0.bak')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment