{"id":3027,"date":"2020-03-12T17:22:38","date_gmt":"2020-03-12T17:22:38","guid":{"rendered":"https:\/\/www.thesslstore.com\/knowledgebase\/?post_type=ht_kb&#038;p=3027"},"modified":"2020-03-12T17:28:28","modified_gmt":"2020-03-12T17:28:28","slug":"how-to-restore-your-site-with-codeguard","status":"publish","type":"ht_kb","link":"https:\/\/www.thesslstore.com\/knowledgebase\/other-codeguard\/how-to-restore-your-site-with-codeguard\/","title":{"rendered":"How to Restore Your Site With CodeGuard"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">You are finally ready to restore! You can restore your site back to any version you have previously saved.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">FTP\/SFTP Restore the whole site.<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Restoring your site with FTP or SFTP can be a bit time consuming, as it requires a backup before you restore the site. The backup is necessary to get the actual current state of the site, as things may have changed drastically since your last backup. FTP\/SFTP Restore the whole site.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Steps to Restore Entire Site:<\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li>Select the version you want to restore.<\/li><li>The normal backup process will run.<\/li><li>There will be two lists of your site content built: a version to be restored, and the site&#8217;s current version.<\/li><li>The differences between those two sites produce the discrete operations for folders and files. Those items will be placed in a queue for processing.<\/li><li>The backup will download (if it does not exist yet) and the version to be restored will be checked out.<\/li><li>Open a connection to the host site.<\/li><li>Process the operations queue and log the results of it all in this specific order:<ol style=\"list-style-type: lower-roman;\"><li>Delete files.<\/li><li>Delete folders.<\/li><li>Create folders.<\/li><li>Upload files.<\/li><li>Change file permission. <\/li><\/ol><\/li><li>Record the restore statistics.<\/li><li>Send out the email notifications.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">FTP\/SFTP Restore individual files.<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can restore individual files without a pre-restore backup. To select the individual files, you can use a typeahead that searches the files for any particular back up version.<\/p>\n\n\n\n<h4 class=\"rich-text editor-rich-text__editable block-editor-rich-text__editable is-selected focus-visible\" role=\"textbox\" contenteditable=\"true\" aria-multiline=\"true\" aria-label=\"Write heading\u2026\" data-focus-visible-added=\"\">Steps to restore individual files:&nbsp;<\/h4>\n<ol>\n<li>Select 1 \u2013 n files in the UI, those are added directly to the operations queue.<\/li>\n<li>The site repo is downloaded and the version that has the previously selected files is checked out.<\/li>\n<li>The connection will be tested and opened while using the right client (FTP\/SFTP)<\/li>\n<li>The selected files will be uploaded, and their permissions will be set.<\/li>\n<li>Record the restore statistics.<\/li>\n<li>Send out the email notifications.<\/li>\n<\/ol>\n\n\n\n<h3>MySQL\/MS-SQL Restore of the Database<\/h3>\n<p>This process will use the MySQL or MS-SQL client to do the restore.<\/p>\n<h4>Steps to restore with MySQL or MS-SQL:<\/h4>\n<ol>\n<li>A pre-restore backup will be performed<\/li>\n<li>Download repo from S3<\/li>\n<li>Target the restore version<\/li>\n<li>Open the connection to remote database while using MySQL directly or you can use an SSH tunnel, or even MS-SQL.<\/li>\n<li>Do the database backup file.<\/li>\n<li>Drop and recreate each table<\/li>\n<li>Import table data.<\/li>\n<li>Record the restore statistics.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>You are finally ready to restore! You can restore your site back to any version you have previously saved. FTP\/SFTP Restore the whole site. Restoring your site with FTP or SFTP can be a bit time consuming, as it requires a backup before you restore the site. The backup is&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[63],"ht-kb-tag":[],"class_list":["post-3027","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-other-codeguard"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Restore Your Site With CodeGuard - Knowledge Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.thesslstore.com\/knowledgebase\/other-codeguard\/how-to-restore-your-site-with-codeguard\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Restore Your Site With CodeGuard - Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"You are finally ready to restore! You can restore your site back to any version you have previously saved. FTP\/SFTP Restore the whole site. Restoring your site with FTP or SFTP can be a bit time consuming, as it requires a backup before you restore the site. The backup is...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thesslstore.com\/knowledgebase\/other-codeguard\/how-to-restore-your-site-with-codeguard\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/thesslstoredotcom\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-12T17:28:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@thesslstore\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Restore Your Site With CodeGuard - Knowledge Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.thesslstore.com\/knowledgebase\/other-codeguard\/how-to-restore-your-site-with-codeguard\/","og_locale":"en_US","og_type":"article","og_title":"How to Restore Your Site With CodeGuard - Knowledge Base","og_description":"You are finally ready to restore! You can restore your site back to any version you have previously saved. FTP\/SFTP Restore the whole site. Restoring your site with FTP or SFTP can be a bit time consuming, as it requires a backup before you restore the site. The backup is...","og_url":"https:\/\/www.thesslstore.com\/knowledgebase\/other-codeguard\/how-to-restore-your-site-with-codeguard\/","og_site_name":"Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/thesslstoredotcom","article_modified_time":"2020-03-12T17:28:28+00:00","og_image":[{"width":300,"height":300,"url":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@thesslstore","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/other-codeguard\/how-to-restore-your-site-with-codeguard\/","url":"https:\/\/www.thesslstore.com\/knowledgebase\/other-codeguard\/how-to-restore-your-site-with-codeguard\/","name":"How to Restore Your Site With CodeGuard - Knowledge Base","isPartOf":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#website"},"datePublished":"2020-03-12T17:22:38+00:00","dateModified":"2020-03-12T17:28:28+00:00","breadcrumb":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/other-codeguard\/how-to-restore-your-site-with-codeguard\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thesslstore.com\/knowledgebase\/other-codeguard\/how-to-restore-your-site-with-codeguard\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/other-codeguard\/how-to-restore-your-site-with-codeguard\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thesslstore.com\/knowledgebase\/"},{"@type":"ListItem","position":2,"name":"How to Restore Your Site With CodeGuard"}]},{"@type":"WebSite","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#website","url":"https:\/\/www.thesslstore.com\/knowledgebase\/","name":"Knowledge Base","description":"TheSSLstore","publisher":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thesslstore.com\/knowledgebase\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#organization","name":"The SSL Store\u2122","url":"https:\/\/www.thesslstore.com\/knowledgebase\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#\/schema\/logo\/image\/","url":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","contentUrl":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-content\/uploads\/2017\/04\/thesslstore.jpg","width":300,"height":300,"caption":"The SSL Store\u2122"},"image":{"@id":"https:\/\/www.thesslstore.com\/knowledgebase\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/thesslstoredotcom","https:\/\/x.com\/thesslstore","https:\/\/www.linkedin.com\/company\/the-ssl-store","https:\/\/www.youtube.com\/user\/thesslstore"]}]}},"_links":{"self":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/3027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=3027"}],"version-history":[{"count":0,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/3027\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=3027"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-category?post=3027"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.thesslstore.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-tag?post=3027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}