summaryrefslogtreecommitdiff
path: root/tech
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-06-02 08:42:17 -0500
committerluxagraf <sng@luxagraf.net>2023-06-02 08:42:17 -0500
commit976d60d506f70ee7ff916079c434290482c22f5a (patch)
treeb9803900d46fe83b46f3e202a0ced40c686eec3f /tech
parent1c10a64d88900cd09177c647d853c85e60a5ddc9 (diff)
moved a few things around
Diffstat (limited to 'tech')
-rw-r--r--tech/psql dump and restore.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/tech/psql dump and restore.txt b/tech/psql dump and restore.txt
new file mode 100644
index 0000000..92dc15d
--- /dev/null
+++ b/tech/psql dump and restore.txt
@@ -0,0 +1,11 @@
+psql back up and restore
+
+Backup:
+
+ $ pg_dump -U {user-name} -hlocalhost -d {source_db} > {dumpfilename.sql}
+
+Restore:
+
+ $ psql -U {user-name} -hlocalhost -d {desintation_db} < {dumpfilename.sql}
+
+