- 
pg_dump is a nifty utility designed to output a series of SQL statements that describes the schema and data of your database. You can control what goes into your backup by using additional flags. 
 Backup:pg_dump -h localhost -p 5432 -U postgres -d mydb > backup.sqlRestore: psql -h localhost -p 5432 -U postgres -d mydb < backup.sql-h is for host. 
 -p is for port.
 -U is for username.
 -d is for database.
There are many (old) clients available:
- https://github.com/tpitale/legato (active, supports API v3)
- https://github.com/activenetwork/gattica
- https://github.com/vigetlabs/garb
The Google Analytics API is at v3 (at time of writing).
This example uses Google's Ruby API client to access Analytics. Use https://github.com/google/google-api-ruby-client (Google supported).