BackupQueue
is an abstract class not intended for direct usage, please refer to
BackupQueueIndex, BackupQueueDateTime, BackupQueueDate instead.
rotor::DirectoryQueue
-> BackupQueue
dir
character
scalar. Directory in which to place the backups.
n
integer
scalar. The number of backups that exist for BackupQueue$origin
dir
character
scalar. Directory in which to place the backups.
n
integer
scalar. The number of backups that exist for BackupQueue$origin
file
character
scalar. The file to backup/rotate.
compression
(Optional) compression to use compression
argument of rotate()
.
max_backups
Maximum number/size/age of backups. See max_backups
argument of rotate()
has_backups
Returns TRUE
if at least one backup of BackupQueue$origin
exists
All backups of self$origin
Inherited methods
new()
BackupQueue$new(
origin,
dir = dirname(origin),
max_backups = Inf,
compression = FALSE,
backup_dir = NULL
)
prune()
Delete all backups except max_backups
. See prune_backups()
.
BackupQueue$prune(max_backups = self$max_backups)
prune_identical()
Delete all identical backups. Uses tools::md5sum()
to
compare the files.
Set the file to be backed up
BackupQueue$prune_identical()
print()
BackupQueue$print()
push_backup()
BackupQueue$push_backup(...)
set_origin()
BackupQueue$set_origin(x)
x
a character
scalar. Path to a file
Set the file to be backed up
set_compression()
BackupQueue$set_compression(x)
x
a character
scalar. Path to a file
set_max_backups()
BackupQueue$set_max_backups(x)
set_file()
BackupQueue$set_file(x)
set_backup_dir()
BackupQueue$set_backup_dir(x)
This class is part of the R6 API of rotor which is
intended for developers that want to extend this package. For normal usage,
the simpler functional API is recommended (see rotate()
).
Other R6 Classes:
BackupQueueDateTime
,
BackupQueueDate
,
BackupQueueIndex
,
Cache
,
DirectoryQueue