create_snapshot: Snapshot of your episomer installation

View source: R/check.R

create_snapshotR Documentation

Snapshot of your episomer installation

Description

Creates a snapshot file of your episomer installation folder. This can include all or a subset of the data files.

Usage

create_snapshot(
  destination_dir,
  types = c("settings", "dependencies", "machine-learning", "aggregations", "posts",
    "logs"),
  posts_period = get_aggregated_period(),
  aggregated_period = get_aggregated_period(),
  compress = TRUE,
  progress = function(v, m) message(paste(round(v * 100, 2), m))
)

Arguments

destination_dir

character(1) vector with the path of the destination folder to produce the snapshot

types

character vector indicating the types of data to include on a snapshot. Some of: "settings", "dependencies", "machine-learning", "aggregations", "posts", "logs"

posts_period

date(2) start and end dates to filter posts to include on snapshot (if selected)

aggregated_period

date(2) start and end dates to filter time series to include on snapshot (if selected)

compress

logical(1) whether to compress or not the output file

progress

function to report progress during execution.

Details

This function can be used to create a a portable file to move your episomer installation in a single file, to backup your data, to archive your old data or to send information to technical team in order to reproduce an observed issue. Different kinds of data can be included on the snapshot depending on the type of parameter. Possible values are: - 'settings': Including all setting files of your installation (excluding passwords) - 'dependencies': All jars and winutils.exe on windows installations - 'machine-learning': All trained models and vectors and training data (this can include post text which is personal data) - 'aggregations': Episomer aggregated time series - 'posts': Posts collected by episomer - 'logs': Log files produced automatically on windows task scheduler tasks.

Value

Nothing

Examples

## Not run: 
   #importing episomer
   library(episomer)
   message('Please choose the episomer data directory')
   setup_config(file.choose())
   message('Please choose a destination directory')
   dest <- file.choose()
   #creating a compressed snapshot for settings and logs
   create_snapshot(dest, c("settings","dependencies"), compress = TRUE)

## End(Not run)

episomer documentation built on Nov. 26, 2026, 5:07 p.m.