| BackupQueue | R Documentation |
BackupQueueis an abstract class not intended for direct usage, please refer to
BackupQueueIndex, BackupQueueDateTime, BackupQueueDate instead.
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()).
rotor::DirectoryQueue -> BackupQueue
dircharacter scalar. Directory in which to place the backups.
ninteger scalar. The number of backups that exist for BackupQueue$origin
dircharacter scalar. Directory in which to place the backups.
ninteger scalar. The number of backups that exist for BackupQueue$origin
filecharacter scalar. The file to backup/rotate.
compression(Optional) compression to use compression argument of rotate().
max_backupsMaximum number/size/age of backups. See max_backups
argument of rotate()
has_backupsReturns TRUE if at least one backup of BackupQueue$origin
exists
All backups of self$origin
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)
xa character scalar. Path to a file
Set the file to be backed up
set_compression()BackupQueue$set_compression(x)
xa 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)
Other R6 Classes:
BackupQueueDateTime,
BackupQueueDate,
BackupQueueIndex,
Cache,
DirectoryQueue
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.