From c0c4920268ae7090c600bc6f526c6b3684cf6c29 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Fri, 5 Mar 2021 17:52:38 +0100 Subject: [PATCH] Auto: misc. --- backups.md | 9 +++++++++ journal/2021-03-05.md | 2 ++ restores.md | 15 +++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 backups.md create mode 100644 restores.md diff --git a/backups.md b/backups.md new file mode 100644 index 000000000..f62c09664 --- /dev/null +++ b/backups.md @@ -0,0 +1,9 @@ +# Backups + +- [[postgres]] + - ```pg_dumpall > date.db``` +- [[mysql]] + - ```mysqldump db > date.db``` +- [[pull]] [[restores]] + - an unrestored backup does not really exist. + diff --git a/journal/2021-03-05.md b/journal/2021-03-05.md index a54a0a0e2..2ddbec146 100644 --- a/journal/2021-03-05.md +++ b/journal/2021-03-05.md @@ -14,6 +14,8 @@ - Implement [[rss]] / [[atom]] feeds - Make 'go wp' work - I should probably learn [[prolog]]. +- [[backups]] + - [[amadeo]] - vio a [[spoon]] en vivo - [[push]] [[done]] diff --git a/restores.md b/restores.md new file mode 100644 index 000000000..647cecf18 --- /dev/null +++ b/restores.md @@ -0,0 +1,15 @@ +# Restores + +- [[postgres]] + - ```pgsql < date.db``` +- [[mysql]] + - ```mysql db < date.db``` +- [[pull]] [[backups]] + - so you have something to restore. + + + +[//begin]: # "Autogenerated link references for markdown compatibility" +[pull]: pull "Pull" +[backups]: backups "Backups" +[//end]: # "Autogenerated link references" \ No newline at end of file