aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_combinebackup/reconstruct.h
blob: c605fd7efdde0fbddbf642775d30d4d0dd1bbede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*-------------------------------------------------------------------------
 *
 * reconstruct.h
 *		Reconstruct full file from incremental file and backup chain.
 *
 * Copyright (c) 2017-2025, PostgreSQL Global Development Group
 *
 * IDENTIFICATION
 *	  src/bin/pg_combinebackup/reconstruct.h
 *
 *-------------------------------------------------------------------------
 */
#ifndef RECONSTRUCT_H
#define RECONSTRUCT_H

#include "common/checksum_helper.h"
#include "copy_file.h"
#include "load_manifest.h"

extern void reconstruct_from_incremental_file(char *input_filename,
											  char *output_filename,
											  char *relative_path,
											  char *bare_file_name,
											  int n_prior_backups,
											  char **prior_backup_dirs,
											  manifest_data **manifests,
											  char *manifest_path,
											  pg_checksum_type checksum_type,
											  int *checksum_length,
											  uint8 **checksum_payload,
											  CopyMethod copy_method,
											  bool debug,
											  bool dry_run);

#endif