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

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -