{"id":762,"date":"2016-07-28T07:19:44","date_gmt":"2016-07-28T01:49:44","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=762"},"modified":"2016-07-28T07:19:44","modified_gmt":"2016-07-28T01:49:44","slug":"exportingimporting-a-job-on-rundeck","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/exportingimporting-a-job-on-rundeck\/","title":{"rendered":"Exporting\/Importing a job on Rundeck"},"content":{"rendered":"<p>Let&#8217;s consider, we want to move the job to one project to another project or move the jobs to one rundeck server to another rundeck server. Rundeck provides an option to export the job in the form of\u00a0<strong>xml or yaml<\/strong>.<\/p>\n<p>First download the jobs from existing project or source rundeck server. Select the option\u00a0<strong>Download Job Definition in XML.<\/strong><\/p>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.03.39-AM.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-764 alignleft\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.03.39-AM.png\" alt=\"rundeck-export\" width=\"634\" height=\"281\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.03.39-AM.png 634w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.03.39-AM-300x133.png 300w\" sizes=\"(max-width: 634px) 100vw, 634px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>On the new server or new project, select the option\u00a0<strong>Rundeck &gt; Select Project &gt; Job Actions &gt; Upload Definition<\/strong><\/p>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.06.34-AM.png\"><img decoding=\"async\" class=\"size-full wp-image-765 alignleft\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.06.34-AM.png\" alt=\"upload-rundek-job\" width=\"213\" height=\"346\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.06.34-AM.png 213w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.06.34-AM-185x300.png 185w\" sizes=\"(max-width: 213px) 100vw, 213px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Select the option\u00a0<strong>XML format\u00a0<\/strong>incase of xml or select the option\u00a0<strong>YAML Format\u00a0<\/strong>incase of yaml format of the downloaded file.<\/p>\n<p>+ Leave the option update the existing job incase if you want to replace the existing job. Select Always create a new job if you want to create a new job<\/p>\n<p>Each rundeck job associated with Unique UUID. Incase, if you are uploading to new server then you can leave the option \u00a0<strong>Preserver UUID.\u00a0<\/strong>If you are uploading on the same server, select the option\u00a0<strong>Remove UUIDs.<\/strong><\/p>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.09.16-AM.png\"><img decoding=\"async\" class=\"alignright size-full wp-image-766\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.09.16-AM.png\" alt=\"Import rundeck job\" width=\"1047\" height=\"467\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.09.16-AM.png 1047w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.09.16-AM-300x134.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.09.16-AM-768x343.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/07\/Screen-Shot-2016-07-28-at-7.09.16-AM-1024x457.png 1024w\" sizes=\"(max-width: 1047px) 100vw, 1047px\" \/><\/a><\/p>\n<p>Click on Upload. Thats it \ud83d\ude42 You have successfully imported a job.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s consider, we want to move the job to one project to another project or move the jobs to one [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[],"class_list":["post-762","post","type-post","status-publish","format-standard","hentry","category-web-architecture","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-ci","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=762"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/762\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}