-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfbBackup.h
More file actions
39 lines (34 loc) · 783 Bytes
/
fbBackup.h
File metadata and controls
39 lines (34 loc) · 783 Bytes
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
/* $Id: fbBackup.h,v 1.11 2008/04/23 01:42:26 ctubbsii Exp $ */
/*
* Copyright (c) 2008 Chris Tubbs
* All rights reserved.
* Do whatever you want with this code.
*
*/
#ifndef fbBACKUP_H
#define fbBACKUP_H
#include "global.h"
#include "fbThread.h"
#include "fbData.h"
#include <archive.h>
#include <archive_entry.h>
#include <dirent.h>
#include <limits.h>
#include <fcntl.h>
#include <sys/param.h>
class fbBackup: public fbThread
{
public:
fbBackup(fbData* _data, const string& src, const string& dest);
~fbBackup();
private:
fbData* data;
string backuppath;
string tarfile;
struct archive *a;
void run();
void fixPath(struct archive_entry *entry);
void traverseDir(const string& pathname);
void addFile(const string& pathname, struct stat *st);
};
#endif