Esempio n. 1
0
        public Duplicati.Library.Interface.IRecreateDatabaseResults RecreateDatabase(string targetpath)
        {
            var t = new string[] { string.IsNullOrEmpty(targetpath) ? m_options.Dbpath : targetpath };

            return(RunAction(new RecreateDatabaseResults(), ref t, (result) => {
                using (var h = new Operation.RecreateDatabaseHandler(m_backend, m_options, result))
                    h.Run(t[0]);
            }));
        }
Esempio n. 2
0
        public Duplicati.Library.Interface.IRecreateDatabaseResults RecreateDatabase(string targetpath, Library.Utility.IFilter filter = null)
        {
            var t = new string[] { string.IsNullOrEmpty(targetpath) ? m_options.Dbpath : targetpath };

            var filelistfilter = Operation.RestoreHandler.FilterNumberedFilelist(m_options.Time, m_options.Version);

            return(RunAction(new RecreateDatabaseResults(), ref t, ref filter, (result) => {
                using (var h = new Operation.RecreateDatabaseHandler(m_backend, m_options, result))
                    h.Run(t[0], filter, filelistfilter);
            }));
        }