zbackup/backup_exchanger.hh

32 lines
732 B
C++
Raw Normal View History

2014-12-11 10:50:15 +03:00
// Copyright (c) 2012-2014 Konstantin Isakov <ikm@zbackup.org> and ZBackup contributors, see CONTRIBUTORS
// Part of ZBackup. Licensed under GNU GPLv2 or later + OpenSSL, see LICENSE
#ifndef BACKUP_EXCHANGER_HH_INCLUDED
#define BACKUP_EXCHANGER_HH_INCLUDED
#include <string>
#include <vector>
2014-10-02 22:13:15 +04:00
#include "tmp_mgr.hh"
namespace BackupExchanger {
using std::string;
using std::vector;
2014-10-02 22:13:15 +04:00
using std::pair;
enum {
backups,
bundles,
indexes,
Flags
};
/// Recreate source directory structure in destination
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;
}
#endif