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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -