]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Added db location info.
authorwbudic <redacted>
Thu, 13 May 2021 09:00:19 +0000 (19:00 +1000)
committerwbudic <redacted>
Thu, 13 May 2021 09:00:19 +0000 (19:00 +1000)
Installation_ProgresSQL.txt

index efad009519cdb1ab64bb3c0c759e82143bb08cb0..ef933b58a5fc07d3cedf0489b5889f2f112a61d2 100644 (file)
@@ -70,6 +70,12 @@ sudo cpan DBD::Pg;
 sudo apt install python3-pip
 sudo python3 -m pip install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v4.30/pip/pgadmin4-4.30-py3-none-any.whl
 
+# Data directory location for backup
+sudo -u postgres psql -c "SHOW data_directory;" | grep -G /
+## Quick tar all
+sudo tar ~/czvf postgresql.db.backup.tar $(sudo -u postgres psql -c "SHOW data_directory;" | grep -G /)
+
+