Created
April 9, 2021 13:27
-
-
Save DaniruKun/98846fbd2a366ded22bc36fb343b7649 to your computer and use it in GitHub Desktop.
Simple Elixir mnesia table backup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{: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