Skip to contents

Backs up the sample database and optionally compares it to the latest backup to detect changes. The function automatically compresses the backup file.

Usage

Backup_SampleDB(
  database = Sys.getenv("SDB_PATH"),
  backup_dir = NULL,
  checksum = TRUE
)

Arguments

database

Path to the sample database, defaults to the "SDB_PATH" environment variable.

backup_dir

Directory to store the backups; if NULL, it defaults to a subdirectory 'backups' in the database directory.

checksum

Logical; if TRUE, checks if the new backup is different from the last one.