-
Notifications
You must be signed in to change notification settings - Fork 0
/
xbpreparer.h
43 lines (35 loc) · 974 Bytes
/
xbpreparer.h
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
36
37
38
39
40
41
42
43
#ifndef XBPREPARER_H
#define XBPREPARER_H
#include <QObject>
#include <QProcess>
#include <QDebug>
#include <QDir>
class XBPreparer : public QObject
{
Q_OBJECT
public:
explicit XBPreparer(QString target, int prepare_type,
int incremental_idx_, QString restore_to,
QString xtrabackup_binary, QString xbstream_bin,
QString qcompress_bin,
bool compression, QString remote, QObject *parent = 0);
signals:
void backup_ready();
void preRotate();
public slots:
void prepare();
void restoreBackup();
private:
QString xtrabackup_binary;
QString xbstream_binary;
QString qpress_path;
QString target_dir;
int type;
int incremental_idx;
QString restore_dir;
bool use_compression;
QString ssh_remote;
protected:
void extract_xtrabackup_stream(QString source, QString destination);
};
#endif // XBPREPARER_H