postgres-backup: add git config to look for CA certs
[mirror/dsa-wiki.git] / input / howto / postgres-backup.creole
index d6957aa..b897514 100644 (file)
@@ -2,7 +2,7 @@
 
 Backing up postgres consists of two main pieces: backing up the WALs (write
 ahead logs) and regular backups of the base.  See
-http://www.postgresql.org/docs/9.4/static/continuous-archiving.html
+https://www.postgresql.org/docs/9.4/static/continuous-archiving.html
 
 == WAL Shipping ==
 
@@ -12,7 +12,7 @@ http://www.postgresql.org/docs/9.4/static/continuous-archiving.html
 }}}
 * clone dsa-misc:
 {{{
-  cd /usr/local && git clone https://db.debian.org/git/dsa-misc.git &&
+  cd /usr/local && git -c http.sslCAInfo=/etc/ssl/ca-debian/ca-certificates.crt clone https://db.debian.org/git/dsa-misc.git &&
   cd bin && ln -s ../dsa-misc/scripts/pg-backup/pg* .
 }}}
 * Add these to /etc/postgresql/9.1/main/postgresql.conf