SYS.ArchiveManager
class SYS.ArchiveManager extends %Library.RegisteredObject
Managing ArchiveMethod Inventory
Methods
classmethod DeleteFile(FileName As %SysPath, ArchiveSpec As %String, Verbose As %Boolean = 0) as %Status
Delete a file from a given archive target.
Parameters:
FileName: the name of the file to delete (case sensitive)
ArchiveSpec: the specification of the archive target where the file is located, i.e., a comma-delimited string of the type and the location of the archive target.
Verbose: whether to display output messages from the command. Default is No.
Parameters:
FileName: the name of the file to delete (case sensitive)
ArchiveSpec: the specification of the archive target where the file is located, i.e., a comma-delimited string of the type and the location of the archive target.
Verbose: whether to display output messages from the command. Default is No.
classmethod FileListExecute(ByRef qHandle As %Binary, FileType As %String = "", MirrorName As %String = "", ArchiveType As %String = "", Location As %String = "") as %Status
classmethod GetFile(FilePath As %SysPath, ArchiveSpec As %String, Move As %Boolean = 0, Verbose As %Boolean = 0) as %Status
Copy a file to 'FilePath' from a given archive source.
Parameters:
FilePath: the path of the destination file
ArchiveSpec: the specification of the archive source, i.e., a comma-delimited string of the type and the location of the archive source.
Move: whether to remove the file from the archive source. Default is No.
Verbose: whether to display output messages from the command. Default is No.
Parameters:
FilePath: the path of the destination file
ArchiveSpec: the specification of the archive source, i.e., a comma-delimited string of the type and the location of the archive source.
Move: whether to remove the file from the archive source. Default is No.
Verbose: whether to display output messages from the command. Default is No.
classmethod PutFile(FilePath As %SysPath, ArchiveName As %String, ByRef ArchiveSpec As %String, Move As %Boolean = 0, Verbose As %Boolean = 0) as %Status
Put a file given by 'FilePath' on a given archive destination.
Parameters:
FilePath: the path of the source file
ArchiveName: the name of the archive destination defined in CPF file
ArchiveSpec (input/output): the specification of the archive destination, i.e., a comma-delimited string of the type and the location of the archive destination.
Move: whether to remove the source file. Default is No.
Verbose: whether to display output messages from the command. Default is No.
Parameters:
FilePath: the path of the source file
ArchiveName: the name of the archive destination defined in CPF file
ArchiveSpec (input/output): the specification of the archive destination, i.e., a comma-delimited string of the type and the location of the archive destination.
Move: whether to remove the source file. Default is No.
Verbose: whether to display output messages from the command. Default is No.
Queries
query FileList(FileType As %String = "", MirrorName As %String = "", ArchiveType As %String = "", Location As %String = "")
Selects FileType As %String, MirrorName As %String, FilePath As %SysPath, ArchiveType As %String, Location As %String, MirrorFileCount As %Integer
List archived files.
Parameters:
FileType -
"" - All record match
MirrorName - Name of the mirror set or "" for non-mirrored journal file.
FilePath - path of the file before archived
ArchiveType - type of the archive target
s3 - AWS S3
rsync - rsync (Unix) or robocopy (Windows)
Location - where the archived file is, e.g., s3://myBucket (s3), host:/dir (rsync) or \\server\dir\ (robocopy)
Parameters:
FileType -
"" - All record match
MirrorName - Name of the mirror set or "" for non-mirrored journal file.
FilePath - path of the file before archived
ArchiveType - type of the archive target
s3 - AWS S3
rsync - rsync (Unix) or robocopy (Windows)
Location - where the archived file is, e.g., s3://myBucket (s3), host:/dir (rsync) or \\server\dir\ (robocopy)
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()