mysqlrestore_host: mysqlrestore_host

View source: R/utils_DBIO.R

mysqlrestore_hostR Documentation

mysqlrestore_host

Description

restore an entire db system or several db-s

Usage

mysqlrestore_host(
  cnf = config::get(),
  backup,
  wipe = FALSE,
  restore_users = FALSE,
  parallel = TRUE,
  exclude,
  host_is_set = FALSE
)

Arguments

cnf

configuration variables are obtained from an external file config file. default to config::get().

backup

path to backup dir. if missing the last backup is used.

restore_users

restore mysql.user table

parallel

default to TRUE

exclude

db to exclude from restoring

host_is_set

default to FALSE

...

further options passed to mysqlrestore

Examples

## Not run: 

 require(dup)
 Sys.setenv(R_CONFIG_ACTIVE = "localhost")
 mysqlrestore_host()

## End(Not run)



mpio-be/dup documentation built on April 15, 2024, 8:10 p.m.