An R6 class for managing indexed backups
A BackupQueue for indexed backups, e.g. foo.log
, foo.1.log
, foo.2.log
, ...
rotor::DirectoryQueue
-> rotor::BackupQueue
-> BackupQueueIndex
push()
Create a new index-stamped backup (e.g. ‘logfile.1.log’)
BackupQueueIndex$push()
prune()
BackupQueueIndex$prune(max_backups = self$max_backups)
prune_identical()
BackupQueueIndex$prune_identical()
should_rotate()
Should a file of size
be rotated? See size
argument of rotate()
BackupQueueIndex$should_rotate(size, verbose = FALSE)
TRUE
or FALSE
pad_index()
Pad the indices in the filenames of indexed backups to the number of digits of the largest index. Usually does not have to be called manually.
BackupQueueIndex$pad_index()
increment_index()
Increment die Indices of all backups by n
Usually does
not have to be called manually.
BackupQueueIndex$increment_index(n = 1)
n
integer
> 0
Other R6 Classes:
BackupQueueDateTime
,
BackupQueueDate
,
BackupQueue
,
Cache
,
DirectoryQueue
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.