1
2#ifndef XTRABACKUP_BACKUP_COPY_H
3#define XTRABACKUP_BACKUP_COPY_H
4
5#include <my_global.h>
6#include "datasink.h"
7
8/* special files */
9#define XTRABACKUP_SLAVE_INFO "xtrabackup_slave_info"
10#define XTRABACKUP_GALERA_INFO "xtrabackup_galera_info"
11#define XTRABACKUP_BINLOG_INFO "xtrabackup_binlog_info"
12#define XTRABACKUP_INFO "xtrabackup_info"
13
14extern bool binlog_locked;
15
16bool
17backup_file_printf(const char *filename, const char *fmt, ...)
18 ATTRIBUTE_FORMAT(printf, 2, 0);
19
20/************************************************************************
21Return true if first and second arguments are the same path. */
22bool
23equal_paths(const char *first, const char *second);
24
25/************************************************************************
26Copy file for backup/restore.
27@return true in case of success. */
28bool
29copy_file(ds_ctxt_t *datasink,
30 const char *src_file_path,
31 const char *dst_file_path,
32 uint thread_n);
33
34/** Start --backup */
35bool backup_start();
36/** Release resources after backup_start() */
37void backup_release();
38/** Finish after backup_start() and backup_release() */
39bool backup_finish();
40bool
41apply_log_finish();
42bool
43copy_back();
44bool
45decrypt_decompress();
46bool
47is_path_separator(char);
48bool
49directory_exists(const char *dir, bool create);
50
51#endif
52