2014-12-11 10:50:15 +03:00
|
|
|
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
|
2014-10-17 18:02:45 +04:00
|
|
|
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
|
2014-08-22 14:40:49 +04:00
|
|
|
|
2015-01-25 19:44:15 +03:00
|
|
|
#ifndef BACKUP_EXCHANGER_HH_INCLUDED
|
|
|
|
#define BACKUP_EXCHANGER_HH_INCLUDED
|
2014-08-22 14:40:49 +04:00
|
|
|
|
2014-08-27 12:12:47 +04:00
|
|
|
#include <string>
|
2014-09-30 14:36:28 +04:00
|
|
|
#include <vector>
|
2014-10-02 22:13:15 +04:00
|
|
|
#include "tmp_mgr.hh"
|
|
|
|
|
|
|
|
namespace BackupExchanger {
|
2014-08-27 12:12:47 +04:00
|
|
|
|
|
|
|
using std::string;
|
2014-09-30 14:36:28 +04:00
|
|
|
using std::vector;
|
2014-10-02 22:13:15 +04:00
|
|
|
using std::pair;
|
2014-08-22 14:40:49 +04:00
|
|
|
|
|
|
|
enum {
|
|
|
|
backups,
|
|
|
|
bundles,
|
2015-08-06 14:02:55 +03:00
|
|
|
indexes,
|
2014-08-22 14:40:49 +04:00
|
|
|
Flags
|
|
|
|
};
|
|
|
|
|
2014-09-30 14:36:28 +04:00
|
|
|
/// Recreate source directory structure in destination
|
2015-01-25 19:33:01 +03:00
|
|
|
vector< string > findOrRebuild( string const & src,
|
|
|
|
string const & dst = std::string(),
|
|
|
|
string const & relativePath = std::string() );
|
2014-10-02 22:13:15 +04:00
|
|
|
typedef pair< sptr< TemporaryFile >, string > PendingExchangeRename;
|
2014-08-22 14:40:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|