arqc
v0.3.4
Published
A wrapper for the `arqc` command.
Downloads
736
Readme
arqc
A wrapper for the arqc
command.
TypeScript package
This package is published as TypeScript source files. You will need to use a compatible bundler (such as esbuild
) or runtime (such as bun
) to import this code.
API
interface CommonBackupActivityJSONFields {
aborted: boolean;
activityLogPath: string;
backupPlanDbId: number;
backupSetUUID: string;
countOfBytes: number;
countOfBytesUploaded: number;
countOfFiles: number;
countOfFilesUploaded: number;
createdTime: number;
dataVersion: number;
errorCount: number;
finishedTime: number;
subType: string;
type: string;
updatedTime: number;
uuid: string;
}
interface InProgressBackupActivityJSON extends CommonBackupActivityJSONFields {
message: string;
}
interface FinishedBackupActivityJSON extends CommonBackupActivityJSONFields {
message: "Idle";
abortReason?: string;
totalBytes: 0;
totalFiles: 0;
}
type BackupActivityJSON = InProgressBackupActivityJSON & FinishedBackupActivityJSON;
declare function backupActivityJSONAsFinished(backupActivityJSON: BackupActivityJSON): FinishedBackupActivityJSON | null;
interface ArqBackupPlanConfig {
backupSetUUID: string;
name?: string;
storageLocation?: string;
}
declare class ArqBackupPlan {
#private;
config: ArqBackupPlanConfig;
constructor(config: ArqBackupPlanConfig);
latestBackupActivityJSON(): Promise<BackupActivityJSON>;
latestBackupActivityLog(): Promise<string>;
wasLatestBackupSuccessful(): Promise<boolean>;
start(): Promise<void>;
stop(): Promise<void>;
}
declare function acceptLicenseAgreement(): Promise<void>;
declare function pauseBackups(minutes: number): Promise<void>;
declare function resumeBackups(): Promise<void>;
declare function listBackupPlans(): Promise<ArqBackupPlan[]>;
declare function setArqcCommandPath(newPath: string): void;
export { ArqBackupPlan, type ArqBackupPlanConfig, type BackupActivityJSON, type FinishedBackupActivityJSON, type InProgressBackupActivityJSON, acceptLicenseAgreement, backupActivityJSONAsFinished, listBackupPlans, pauseBackups, resumeBackups, setArqcCommandPath };