cron_save: Save the current crontab

View source: R/cron_save.R

cron_saveR Documentation

Save the current crontab

Description

Save the current crontab

Usage

cron_save(file, overwrite = FALSE, user = "")

Arguments

file

The file location at which you wish to save your crontab.

overwrite

logical; should we overwrite the file at path file if it already exists?

user

The user whose cron jobs we will be saving.

See Also

file.copy

Examples

## Not run: 
cron_add(command = cron_rscript(system.file(package = "cronR", "extdata", "helloworld.R")), 
  frequency = 'minutely', id = 'test1', description = 'My process 1')
cron_save(file="crontab_backup", overwrite=TRUE)
cron_clear()
cron_load(file="crontab_backup")

## End(Not run)

cronR documentation built on Jan. 9, 2023, 5:10 p.m.