Пример #1
0
        static void Main(string[] args)
        {
            var exportFacade = new ExportFacade(Settings.Default.ConnectionString);

            if (Settings.Default.BackupedDatabases != null && Settings.Default.BackupedDatabases.Count > 0)
            {
                exportFacade.ExportDatabases(Settings.Default.BackupedDatabases.Cast <string>().ToList());
            }
            else
            {
                exportFacade.ExportAllDatabases();
            }

            exportFacade.CleanupOlderBackups();
        }
Пример #2
0
        static void Main(string[] args)
        {
            var exportFacade = new ExportFacade(Settings.Default.ConnectionString);
            if (Settings.Default.BackupedDatabases != null && Settings.Default.BackupedDatabases.Count > 0)
            {
                exportFacade.ExportDatabases(Settings.Default.BackupedDatabases.Cast<string>().ToList());
            }
            else
            {
                exportFacade.ExportAllDatabases();
            }

            exportFacade.CleanupOlderBackups();

          
        }