Exemple #1
0
        public bool IsInDBS()
        {
            Client client = HttpRequests.GetClient();

            if (client != null)
            {
                this.client = client;
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #2
0
        private void Full_Backup(fullBackupInfo backup, backup_source source, backup_target target)
        {
            string targetPath = target.path;

            targetPath += @"\full\";

            bool ZIP = backup.format_type == "zip";

            fileFunc.CheckParentDirectory(targetPath, ZIP);

            if (ZIP)
            {
                ZipFile.CreateFromDirectory(source.path, targetPath + AddDate() + ".zip");
            }
            else
            {
                fileFunc.Copy(source.path, targetPath + AddDate());
            }

            fileFunc.DeleteOldBackups(target.path + @"\full\", ZIP);

            HttpRequests.PostJobHistory(backup.id, DateTime.Now, true);
        }
Exemple #3
0
 private void DownloadBackupDetails()
 {
     ClientConfig.CreateBackups(HttpRequests.PostGetBackups());
 }
Exemple #4
0
        public void AddThisPC()
        {
            Client client = HttpRequests.PostClient();

            ClientConfig.CreateClient(client);
        }