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 | |
14 | extern bool binlog_locked; |
15 | |
16 | bool |
17 | backup_file_printf(const char *filename, const char *fmt, ...) |
18 | ATTRIBUTE_FORMAT(printf, 2, 0); |
19 | |
20 | /************************************************************************ |
21 | Return true if first and second arguments are the same path. */ |
22 | bool |
23 | equal_paths(const char *first, const char *second); |
24 | |
25 | /************************************************************************ |
26 | Copy file for backup/restore. |
27 | @return true in case of success. */ |
28 | bool |
29 | copy_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 */ |
35 | bool backup_start(); |
36 | /** Release resources after backup_start() */ |
37 | void backup_release(); |
38 | /** Finish after backup_start() and backup_release() */ |
39 | bool backup_finish(); |
40 | bool |
41 | apply_log_finish(); |
42 | bool |
43 | copy_back(); |
44 | bool |
45 | decrypt_decompress(); |
46 | bool |
47 | is_path_separator(char); |
48 | bool |
49 | directory_exists(const char *dir, bool create); |
50 | |
51 | #endif |
52 | |