You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-11-06 08:49:29 +02:00
37 lines
1.8 KiB
C
37 lines
1.8 KiB
C
/***********************************************************************************************************************************
|
|
Archive Push File
|
|
***********************************************************************************************************************************/
|
|
#ifndef COMMAND_ARCHIVE_PUSH_FILE_H
|
|
#define COMMAND_ARCHIVE_PUSH_FILE_H
|
|
|
|
#include "common/compress/helper.h"
|
|
#include "common/crypto/common.h"
|
|
#include "common/type/string.h"
|
|
#include "storage/storage.h"
|
|
|
|
/***********************************************************************************************************************************
|
|
Structure to hold information for each repository the archive file will be pushed to. An array of these must be passed to
|
|
archivePushFile() with size equal to cfgOptionGroupIdxTotal(cfgOptGrpRepo).
|
|
***********************************************************************************************************************************/
|
|
typedef struct ArchivePushFileRepoData
|
|
{
|
|
const String *archiveId;
|
|
CipherType cipherType;
|
|
const String *cipherPass;
|
|
} ArchivePushFileRepoData;
|
|
|
|
/***********************************************************************************************************************************
|
|
Functions
|
|
***********************************************************************************************************************************/
|
|
typedef struct ArchivePushFileResult
|
|
{
|
|
StringList *warnList; // Warnings from a successful operation
|
|
} ArchivePushFileResult;
|
|
|
|
// Copy a file from the source to the archive
|
|
ArchivePushFileResult archivePushFile(
|
|
const String *walSource, unsigned int pgVersion, uint64_t pgSystemId, const String *archiveFile, CompressType compressType,
|
|
int compressLevel, const ArchivePushFileRepoData *repoData);
|
|
|
|
#endif
|