Database backup in PostgreSQL from R -


i'm using rpostgresql package read/write postgresql r works fine. however, while trying automate backup process error when following:

dbsendquery(con,"pg_dump my_db > my_db_backup.sql") 

error:

error in postgresqlexecstatement(conn, statement, ...) : rs-dbi driver: (could not retrieve result : error: syntax error @ or near "pg_dump" line 1: pg_dump my_db > my_db_backup.sql

is possible create backup , restore database postgresql r?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -