backup_database: Backup database with pg_dump

Description Usage Arguments Value See Also Examples

View source: R/postgresql.R

Description

backup_database will backup the database as a compressed dump file or uncompressed SQL file.

Usage

1
backup_database(outpath_nosuffix, con = ".connection")

Arguments

outpath_nosuffix

is the full path and file name of the backup file to be generated with no suffix automatically)

con

is the name of the database connection

custom_compress

is whether or not you want to use a custom-pre-compressed dump format. If FALSE a standard SQL file is generated.

Value

user.

See Also

Other postgresql functions: add_tables_db, agg_unit_ok, aggregate_data, already_uploaded, column_exists, column_types, create_database, delete_data, get_column_names, get_connection, get_filenames_forSubject, get_filenames, get_row_count, get_sensor_data, get_subjectid, kill_pg_connections, list_tables, process_hexoskin, restore_database, table_exists, upload_postgres, valid_connection

Examples

1
backup_database("x:/junk", con=".connection", custom_compress=TRUE)

zross/sensorDataImport documentation built on Aug. 16, 2019, 8:30 p.m.