{"id":4553,"date":"2022-05-04T07:00:00","date_gmt":"2022-05-04T04:00:00","guid":{"rendered":"https:\/\/www.dataplatform.gr\/?p=4553"},"modified":"2023-10-03T20:25:05","modified_gmt":"2023-10-03T17:25:05","slug":"pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent","status":"publish","type":"post","link":"https:\/\/www.dataplatform.gr\/en\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/","title":{"rendered":"How can we perform backups and other Agent jobs in an Always On Availability Group of SQL Server"},"content":{"rendered":"<p>In this article we will see how to take backup and run jobs on any server that has it <strong><em>Primary role<\/em><\/strong> or is <em><strong>Preferred Backup Replica<\/strong><\/em> in a <strong>Always On Availability Group<\/strong> of SQL Server.<\/p>\n\n\n\n<p>When installing a standard Availability Group in <strong>Enterprise SQL Server<\/strong>, it asks us where we want it to take the database backups. It has the option as default value <em><strong>Prefer Secondary<\/strong><\/em>. But there is a problem. In <strong>secondary replica allows<\/strong> <strong>only <\/strong>the execution <code>COPY_ONLY<\/code> Full backup and no Differential backup:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"675\" height=\"603\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_04.png\" alt=\"\" class=\"wp-image-4557\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_04.png 675w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_04-300x268.png 300w\" sizes=\"auto, (max-width: 675px) 100vw, 675px\" \/><figcaption class=\"wp-element-caption\">01<\/figcaption><\/figure>\n\n\n\n<p>In order to solve this problem and make our installation less complex, we will define that all backups and other jobs for maintenance are executed and not only, on whichever replica of the database is <strong>Preferred Backup Replica <\/strong>the <strong>Primary Replica<\/strong> per case.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The footsteps<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">For Database Backups<\/h4>\n\n\n\n<p>Let&#039;s go to <em>Object Explorer<\/em> of SSMS and select <em>Always On High Availability<\/em>, <em>Availability Groups <\/em>and right click <em>Properties <\/em>in the group:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"357\" height=\"499\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_01.png\" alt=\"\" class=\"wp-image-4554\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_01.png 357w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_01-215x300.png 215w\" sizes=\"auto, (max-width: 357px) 100vw, 357px\" \/><figcaption class=\"wp-element-caption\">02<\/figcaption><\/figure>\n\n\n\n<p>With the Wizard appearing in the <em>Backup Preferences<\/em> we choose <strong><em>Primary<\/em><\/strong> and OK:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"685\" height=\"621\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_02.png\" alt=\"\" class=\"wp-image-4555\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_02.png 685w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_02-300x272.png 300w\" sizes=\"auto, (max-width: 685px) 100vw, 685px\" \/><figcaption class=\"wp-element-caption\">03<\/figcaption><\/figure>\n\n\n\n<p>The following code checks if the <strong><em>Preferred Backup Replica <\/em><\/strong>and if it is not it displays an error. The default behavior of SQL Server Agent is to stop the job if any step shows an error:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">DECLARE @preferredReplica int\nSET @preferredReplica = (SELECT \n  max(cast(sys.fn_hadr_backup_is_preferred_replica (database_name) as int)) AS IsPreferredBackupReplicaNow\nFROM sys.availability_databases_cluster)\n\nIF (@preferredReplica = 0)\nBEGIN\nRAISERROR ('No backup produced as this server, is not the preferred replica for backups.  Please run the job again from the preferred replica.', 16, 1)\nEND;<\/pre>\n\n\n\n<p>We add the code to <strong>SQL Server Agent job <\/strong>that we want. To do this we select Job, <em>Steps<\/em>(1), <em>New\u2026<\/em>(2) , add code(3), set to be <em>Start Step<\/em>(4) and first in <em>Job<\/em> <em>step list<\/em>(5) :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"461\" src=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_03-1024x461.png\" alt=\"\" class=\"wp-image-4558\" srcset=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_03-1024x461.png 1024w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_03-300x135.png 300w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_03-768x346.png 768w, https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/02\/agb_03.png 1376w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">04<\/figcaption><\/figure>\n\n\n\n<p>So having created the SQL Server Agent Job on all nodes\/servers of the Availability Group it will only be executed on whichever is Primary at the moment.<\/p>\n\n\n\n<p>We can of course make it a little more complicated and have the Backup code and the Preferred Replica control in the same step:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">DECLARE @preferredReplica int\nSET @preferredReplica = (SELECT \n  max(cast(sys.fn_hadr_backup_is_preferred_replica (database_name) as int)) AS IsPreferredBackupReplicaNow\nFROM sys.availability_databases_cluster)\n\nIF (@preferredReplica = 0)\n\tRAISERROR ('No backup produced as this server, is not the preferred replica for backups.  Please run the job again from the preferred replica.', 16, 1)\nELSE\n    EXEC msdb.dbo.sp_start_job N'DatabaseBackup - USER_DATABASES - FULL'; <\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">For Database Integrity Check<\/h4>\n\n\n\n<p>Somewhere here we should mention that the same process can work for the Database Integrity Check as the Availability Group allows us to do this check on a secondary replica.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">For Index Optimize (Index Rebuild) and other jobs<\/h4>\n\n\n\n<p>Accordingly, for SQL Server Agent Jobs that we want to run only on the Primary Replica, we do the same procedure and add a Step to the Job with the following code that performs this check:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">DECLARE @Role int\nSET @Role = (select role from sys.dm_hadr_availability_replica_states where is_local=1)\n\nIF (@Role != 1 ) -- if is not primary\nBEGIN\nRAISERROR ('Job did not run, is not the Primary replica. Please run on Primary Replica.', 16, 1);\nEND;<\/pre>\n\n\n\n<p>We can also in this case if we want to add the control in the same step as the code:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"sql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\" data-no-translation=\"\" data-no-auto-translation=\"\">DECLARE @Role int\nSET @Role = (select role from sys.dm_hadr_availability_replica_states where is_local=1)\n\nIF (@Role != 1 ) -- if is not primary\n\tRAISERROR ('Job did not run, is not the Primary replica. Please run on Primary Replica.', 16, 1);\nELSE\n\tEXEC msdb.dbo.sp_start_job N'IndexOptimize';  <\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Bonus<\/h2>\n\n\n\n<p>With the following script that I have made, with just one click, it installs it <a href=\"https:\/\/ola.hallengren.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">MaintenanceSolution<\/a> by Ola Hallengren along with ready configured jobs for <strong>Backup<\/strong> ,<strong>Database Integrity<\/strong> and <strong>Index Optimize<\/strong> with optimal parameters and timing.<\/p>\n\n\n\n<p>Backup jobs are created <strong>disabled<\/strong> as we may have another solution for backup with a 3rd party tool. It also checks for <strong>Availability Group<\/strong> so that they run only if it is the <em>Preferred Backup Replica <\/em>(for backup \/ database integrity) and if it is <em>Primary Replica<\/em> (for Index Optimize).<\/p>\n\n\n\n<p>All we need to do is run the following script on each SQL Server Instance:<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-35d90714-6298-44b5-8784-c05fdc4d0702\" href=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/09\/MaintenanceSolution-ReadyToPlay.txt\">MaintenanceSolution-ReadyToPlay<\/a><a href=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2022\/09\/MaintenanceSolution-ReadyToPlay.txt\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-35d90714-6298-44b5-8784-c05fdc4d0702\">Download<\/a><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sources:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/database-engine\/availability-groups\/windows\/logins-and-jobs-for-availability-group-databases?view=sql-server-ver15\" target=\"_blank\" rel=\"noreferrer noopener\">Manage logins for jobs using databases in an Always On availability group<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/ola.hallengren.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">SQL Server Backup, Integrity Check, and Index and Statistics Maintenance<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>In this article we will see how to take backups and run jobs on any server that has the Primary role or is a Preferred Backup Replica in an Always On Availability Group of SQL Server. When installing a standard Availability Group in Enterprise SQL Server, it asks us where we want it to take the databases [...]<\/p>","protected":false},"author":1,"featured_media":702,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,15],"tags":[156,79,29,66,65,23,30,6],"class_list":["post-4553","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases","category-ms-sqlserver","tag-always-on-availability-group","tag-backup","tag-databases","tag-disaster-recovery","tag-high-availability","tag-microsoft","tag-rdbms","tag-sqlserver"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u03a0\u03ce\u03c2 \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bc\u03b5 backups \u03ba\u03b1\u03b9 \u03bb\u03bf\u03b9\u03c0\u03ac Agent jobs \u03c3\u03b5 Always On Availability Group \u03c4\u03bf\u03c5 SQL Server - DataPlatform.gr<\/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.dataplatform.gr\/en\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u03a0\u03ce\u03c2 \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bc\u03b5 backups \u03ba\u03b1\u03b9 \u03bb\u03bf\u03b9\u03c0\u03ac Agent jobs \u03c3\u03b5 Always On Availability Group \u03c4\u03bf\u03c5 SQL Server - DataPlatform.gr\" \/>\n<meta property=\"og:description\" content=\"\u03a3\u03b5 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03ac\u03c1\u03b8\u03c1\u03bf \u03b8\u03b1 \u03b4\u03bf\u03cd\u03bc\u03b5 \u03c0\u03ce\u03c2 \u03b3\u03af\u03bd\u03b5\u03c4\u03b1\u03b9 \u03bd\u03b1 \u03c0\u03b1\u03af\u03c1\u03bd\u03bf\u03c5\u03bc\u03b5 backup \u03ba\u03b1\u03b9 \u03bd\u03b1 \u03c4\u03c1\u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 jobs \u03c3\u03b5 \u03cc\u03c0\u03bf\u03b9\u03bf\u03bd server \u03ad\u03c7\u03b5\u03b9 \u03c4\u03bf\u03bd Primary \u03c1\u03cc\u03bb\u03bf \u03ae \u03b5\u03af\u03bd\u03b1\u03b9 Preferred Backup Replica \u03c3\u03b5 \u03ad\u03bd\u03b1 Always On Availability Group \u03c4\u03bf\u03c5 SQL Server. \u039a\u03b1\u03c4\u03ac \u03c4\u03b7\u03bd \u03b5\u03b3\u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7 \u03b5\u03bd\u03cc\u03c2 standard Availability Group \u03c3\u03b5 Enterprise SQL Server, \u03bc\u03b1\u03c2 \u03b6\u03b7\u03c4\u03ac\u03b5\u03b9 \u03c0\u03bf\u03c5 \u03b8\u03ad\u03bb\u03bf\u03c5\u03bc\u03b5 \u03bd\u03b1 \u03c0\u03b1\u03af\u03c1\u03bd\u03b5\u03b9 \u03c4\u03b1 database [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dataplatform.gr\/en\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/\" \/>\n<meta property=\"og:site_name\" content=\"DataPlatform.gr\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dataplatform.gr\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-04T04:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-03T17:25:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Stratos Matzouranis\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stratos Matzouranis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\\\/\"},\"author\":{\"name\":\"Stratos Matzouranis\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/person\\\/e87bf4fd02b65cb6aa0942f87245bbaf\"},\"headline\":\"\u03a0\u03ce\u03c2 \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bc\u03b5 backups \u03ba\u03b1\u03b9 \u03bb\u03bf\u03b9\u03c0\u03ac Agent jobs \u03c3\u03b5 Always On Availability Group \u03c4\u03bf\u03c5 SQL Server\",\"datePublished\":\"2022-05-04T04:00:00+00:00\",\"dateModified\":\"2023-10-03T17:25:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\\\/\"},\"wordCount\":181,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sqlserver.png\",\"keywords\":[\"Always On Availability Group\",\"Backup\",\"Databases\",\"Disaster Recovery\",\"High Availability\",\"Microsoft\",\"RDBMS\",\"SQL Server\"],\"articleSection\":[\"Databases\",\"Microsoft SQL Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dataplatform.gr\\\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\\\/\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\\\/\",\"name\":\"\u03a0\u03ce\u03c2 \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bc\u03b5 backups \u03ba\u03b1\u03b9 \u03bb\u03bf\u03b9\u03c0\u03ac Agent jobs \u03c3\u03b5 Always On Availability Group \u03c4\u03bf\u03c5 SQL Server - DataPlatform.gr\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sqlserver.png\",\"datePublished\":\"2022-05-04T04:00:00+00:00\",\"dateModified\":\"2023-10-03T17:25:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dataplatform.gr\\\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sqlserver.png\",\"contentUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_sqlserver.png\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0391\u03c1\u03c7\u03b9\u03ba\u03ae\",\"item\":\"https:\\\/\\\/www.dataplatform.gr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Databases\",\"item\":\"https:\\\/\\\/www.dataplatform.gr\\\/category\\\/databases\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Microsoft SQL Server\",\"item\":\"https:\\\/\\\/www.dataplatform.gr\\\/category\\\/databases\\\/ms-sqlserver\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u03a0\u03ce\u03c2 \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bc\u03b5 backups \u03ba\u03b1\u03b9 \u03bb\u03bf\u03b9\u03c0\u03ac Agent jobs \u03c3\u03b5 Always On Availability Group \u03c4\u03bf\u03c5 SQL Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#website\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/\",\"name\":\"dataplatform.gr - Sky is not the limit!\",\"description\":\"\u0398\u03b5\u03c9\u03c1\u03af\u03b1, \u03bf\u03b4\u03b7\u03b3\u03bf\u03af \u03ba\u03b1\u03b9 \u03c3\u03ba\u03ad\u03c8\u03b5\u03b9\u03c2 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u03c4\u03b7 \u03b4\u03bf\u03c5\u03bb\u03b5\u03b9\u03ac \u03c3\u03b1\u03c2 \u03c0\u03b9\u03bf \u03c0\u03b1\u03c1\u03b1\u03b3\u03c9\u03b3\u03b9\u03ba\u03ac \u03ba\u03b1\u03b9 \u03c0\u03b9\u03bf \u03b5\u03cd\u03ba\u03bf\u03bb\u03b1 \u03c0\u03ac\u03bd\u03c9 \u03c3\u03c4\u03b9\u03c2 \u03b2\u03ac\u03c3\u03b5\u03b9\u03c2 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd, \u03c3\u03c4\u03b7\u03bd SQL, \u03c3\u03c4\u03bf Business Intelligence \u03ba\u03b1\u03b9 \u03c3\u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03b3\u03b5\u03bd\u03b9\u03ba\u03cc\u03c4\u03b5\u03c1\u03b1.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dataplatform.gr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#organization\",\"name\":\"dataplatform.gr\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_logo_wbacki.png\",\"contentUrl\":\"https:\\\/\\\/www.dataplatform.gr\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/dp_logo_wbacki.png\",\"width\":322,\"height\":139,\"caption\":\"dataplatform.gr\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dataplatform.gr\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dataplatform-gr\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dataplatform.gr\\\/#\\\/schema\\\/person\\\/e87bf4fd02b65cb6aa0942f87245bbaf\",\"name\":\"Stratos Matzouranis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g\",\"caption\":\"Stratos Matzouranis\"},\"sameAs\":[\"https:\\\/\\\/www.dataplatform.gr\"],\"url\":\"https:\\\/\\\/www.dataplatform.gr\\\/en\\\/author\\\/stratos-matzouranis\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u03a0\u03ce\u03c2 \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bc\u03b5 backups \u03ba\u03b1\u03b9 \u03bb\u03bf\u03b9\u03c0\u03ac Agent jobs \u03c3\u03b5 Always On Availability Group \u03c4\u03bf\u03c5 SQL Server - DataPlatform.gr","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.dataplatform.gr\/en\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/","og_locale":"en_US","og_type":"article","og_title":"\u03a0\u03ce\u03c2 \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bc\u03b5 backups \u03ba\u03b1\u03b9 \u03bb\u03bf\u03b9\u03c0\u03ac Agent jobs \u03c3\u03b5 Always On Availability Group \u03c4\u03bf\u03c5 SQL Server - DataPlatform.gr","og_description":"\u03a3\u03b5 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03ac\u03c1\u03b8\u03c1\u03bf \u03b8\u03b1 \u03b4\u03bf\u03cd\u03bc\u03b5 \u03c0\u03ce\u03c2 \u03b3\u03af\u03bd\u03b5\u03c4\u03b1\u03b9 \u03bd\u03b1 \u03c0\u03b1\u03af\u03c1\u03bd\u03bf\u03c5\u03bc\u03b5 backup \u03ba\u03b1\u03b9 \u03bd\u03b1 \u03c4\u03c1\u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 jobs \u03c3\u03b5 \u03cc\u03c0\u03bf\u03b9\u03bf\u03bd server \u03ad\u03c7\u03b5\u03b9 \u03c4\u03bf\u03bd Primary \u03c1\u03cc\u03bb\u03bf \u03ae \u03b5\u03af\u03bd\u03b1\u03b9 Preferred Backup Replica \u03c3\u03b5 \u03ad\u03bd\u03b1 Always On Availability Group \u03c4\u03bf\u03c5 SQL Server. \u039a\u03b1\u03c4\u03ac \u03c4\u03b7\u03bd \u03b5\u03b3\u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b1\u03c3\u03b7 \u03b5\u03bd\u03cc\u03c2 standard Availability Group \u03c3\u03b5 Enterprise SQL Server, \u03bc\u03b1\u03c2 \u03b6\u03b7\u03c4\u03ac\u03b5\u03b9 \u03c0\u03bf\u03c5 \u03b8\u03ad\u03bb\u03bf\u03c5\u03bc\u03b5 \u03bd\u03b1 \u03c0\u03b1\u03af\u03c1\u03bd\u03b5\u03b9 \u03c4\u03b1 database [&hellip;]","og_url":"https:\/\/www.dataplatform.gr\/en\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/","og_site_name":"DataPlatform.gr","article_publisher":"https:\/\/www.facebook.com\/dataplatform.gr\/","article_published_time":"2022-05-04T04:00:00+00:00","article_modified_time":"2023-10-03T17:25:05+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","type":"image\/png"}],"author":"Stratos Matzouranis","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Stratos Matzouranis","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dataplatform.gr\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/#article","isPartOf":{"@id":"https:\/\/www.dataplatform.gr\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/"},"author":{"name":"Stratos Matzouranis","@id":"https:\/\/www.dataplatform.gr\/#\/schema\/person\/e87bf4fd02b65cb6aa0942f87245bbaf"},"headline":"\u03a0\u03ce\u03c2 \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bc\u03b5 backups \u03ba\u03b1\u03b9 \u03bb\u03bf\u03b9\u03c0\u03ac Agent jobs \u03c3\u03b5 Always On Availability Group \u03c4\u03bf\u03c5 SQL Server","datePublished":"2022-05-04T04:00:00+00:00","dateModified":"2023-10-03T17:25:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dataplatform.gr\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/"},"wordCount":181,"commentCount":0,"publisher":{"@id":"https:\/\/www.dataplatform.gr\/#organization"},"image":{"@id":"https:\/\/www.dataplatform.gr\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","keywords":["Always On Availability Group","Backup","Databases","Disaster Recovery","High Availability","Microsoft","RDBMS","SQL Server"],"articleSection":["Databases","Microsoft SQL Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dataplatform.gr\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dataplatform.gr\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/","url":"https:\/\/www.dataplatform.gr\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/","name":"\u03a0\u03ce\u03c2 \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bc\u03b5 backups \u03ba\u03b1\u03b9 \u03bb\u03bf\u03b9\u03c0\u03ac Agent jobs \u03c3\u03b5 Always On Availability Group \u03c4\u03bf\u03c5 SQL Server - DataPlatform.gr","isPartOf":{"@id":"https:\/\/www.dataplatform.gr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dataplatform.gr\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/#primaryimage"},"image":{"@id":"https:\/\/www.dataplatform.gr\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","datePublished":"2022-05-04T04:00:00+00:00","dateModified":"2023-10-03T17:25:05+00:00","breadcrumb":{"@id":"https:\/\/www.dataplatform.gr\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dataplatform.gr\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dataplatform.gr\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/#primaryimage","url":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","contentUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_sqlserver.png","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/www.dataplatform.gr\/pos-mporoyme-na-ekteloyme-backups-kai-loipa-agent\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0391\u03c1\u03c7\u03b9\u03ba\u03ae","item":"https:\/\/www.dataplatform.gr\/"},{"@type":"ListItem","position":2,"name":"Databases","item":"https:\/\/www.dataplatform.gr\/category\/databases\/"},{"@type":"ListItem","position":3,"name":"Microsoft SQL Server","item":"https:\/\/www.dataplatform.gr\/category\/databases\/ms-sqlserver\/"},{"@type":"ListItem","position":4,"name":"\u03a0\u03ce\u03c2 \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03b5\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bc\u03b5 backups \u03ba\u03b1\u03b9 \u03bb\u03bf\u03b9\u03c0\u03ac Agent jobs \u03c3\u03b5 Always On Availability Group \u03c4\u03bf\u03c5 SQL Server"}]},{"@type":"WebSite","@id":"https:\/\/www.dataplatform.gr\/#website","url":"https:\/\/www.dataplatform.gr\/","name":"dataplatform.gr - Sky is not the limit!","description":"\u0398\u03b5\u03c9\u03c1\u03af\u03b1, \u03bf\u03b4\u03b7\u03b3\u03bf\u03af \u03ba\u03b1\u03b9 \u03c3\u03ba\u03ad\u03c8\u03b5\u03b9\u03c2 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u03c4\u03b7 \u03b4\u03bf\u03c5\u03bb\u03b5\u03b9\u03ac \u03c3\u03b1\u03c2 \u03c0\u03b9\u03bf \u03c0\u03b1\u03c1\u03b1\u03b3\u03c9\u03b3\u03b9\u03ba\u03ac \u03ba\u03b1\u03b9 \u03c0\u03b9\u03bf \u03b5\u03cd\u03ba\u03bf\u03bb\u03b1 \u03c0\u03ac\u03bd\u03c9 \u03c3\u03c4\u03b9\u03c2 \u03b2\u03ac\u03c3\u03b5\u03b9\u03c2 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd, \u03c3\u03c4\u03b7\u03bd SQL, \u03c3\u03c4\u03bf Business Intelligence \u03ba\u03b1\u03b9 \u03c3\u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03b3\u03b5\u03bd\u03b9\u03ba\u03cc\u03c4\u03b5\u03c1\u03b1.","publisher":{"@id":"https:\/\/www.dataplatform.gr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dataplatform.gr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dataplatform.gr\/#organization","name":"dataplatform.gr","url":"https:\/\/www.dataplatform.gr\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dataplatform.gr\/#\/schema\/logo\/image\/","url":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_logo_wbacki.png","contentUrl":"https:\/\/www.dataplatform.gr\/wp-content\/uploads\/2020\/06\/dp_logo_wbacki.png","width":322,"height":139,"caption":"dataplatform.gr"},"image":{"@id":"https:\/\/www.dataplatform.gr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dataplatform.gr\/","https:\/\/www.linkedin.com\/company\/dataplatform-gr\/"]},{"@type":"Person","@id":"https:\/\/www.dataplatform.gr\/#\/schema\/person\/e87bf4fd02b65cb6aa0942f87245bbaf","name":"Stratos Matzouranis","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ab973bc4bd1673c43d45de5633a624d9ad13c06902dfdd5a6e3fd9885903865e?s=96&d=mm&r=g","caption":"Stratos Matzouranis"},"sameAs":["https:\/\/www.dataplatform.gr"],"url":"https:\/\/www.dataplatform.gr\/en\/author\/stratos-matzouranis\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts\/4553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/comments?post=4553"}],"version-history":[{"count":1,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts\/4553\/revisions"}],"predecessor-version":[{"id":5595,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/posts\/4553\/revisions\/5595"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/media\/702"}],"wp:attachment":[{"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/media?parent=4553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/categories?post=4553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dataplatform.gr\/en\/wp-json\/wp\/v2\/tags?post=4553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}