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 -

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -