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

            if (client != null)
            {
                this.client = client;
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#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);
        }
示例#3
0
 private void DownloadBackupDetails()
 {
     ClientConfig.CreateBackups(HttpRequests.PostGetBackups());
 }
示例#4
0
        public void AddThisPC()
        {
            Client client = HttpRequests.PostClient();

            ClientConfig.CreateClient(client);
        }