{"id":746,"date":"2024-05-22T23:50:05","date_gmt":"2024-05-22T21:50:05","guid":{"rendered":"https:\/\/www.dont-panic.cc\/capi\/?p=746"},"modified":"2024-07-11T19:46:39","modified_gmt":"2024-07-11T17:46:39","slug":"helper-bash-scripts-to-move-projects-from-your-small-ssd-to-a-larger-hdd-and-back","status":"publish","type":"post","link":"https:\/\/www.dont-panic.cc\/capi\/2024\/05\/22\/helper-bash-scripts-to-move-projects-from-your-small-ssd-to-a-larger-hdd-and-back\/","title":{"rendered":"Helper bash scripts to move projects from your small SSD to a larger HDD (and back)"},"content":{"rendered":"\n<p>I use a Dell 9020m Micro-PC as &#8220;terminal-server&#8221; for development. It has a small SSD, but also a larger HDD attached.<\/p>\n\n\n\n<p>I&#8217;ve created two simple bash-scripts that help move projects I currently don&#8217;t work on from SSD to HDD. They add symlink to the &#8220;off-boarded&#8221; location so that I can basically keep on working on them, but with slower I\/O.  When I want to work on the project again (and need the I\/O speed), the project is moved back to the SSD (&#8220;on-boarding&#8221;).<\/p>\n\n\n\n<p>To make re-off-boarding fast, the on-boarded state is kept on the HDD and re-used when off-boarding the project again.<\/p>\n\n\n\n<p>These two simple scripts have been released under <a href=\"https:\/\/github.com\/capi\/offboard-projects\/blob\/main\/LICENSE\">MIT license<\/a> on <a href=\"https:\/\/github.com\/capi\/offboard-projects\" data-type=\"link\" data-id=\"https:\/\/github.com\/capi\/offboard-projects\">GitHub<\/a>.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69d6bfd20a89f&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69d6bfd20a89f\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"866\" height=\"306\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.dont-panic.cc\/capi\/wp-content\/uploads\/2024\/05\/offboard-onboard-screenshot.png\" alt=\"\" class=\"wp-image-747\" srcset=\"https:\/\/www.dont-panic.cc\/capi\/wp-content\/uploads\/2024\/05\/offboard-onboard-screenshot.png 866w, https:\/\/www.dont-panic.cc\/capi\/wp-content\/uploads\/2024\/05\/offboard-onboard-screenshot-300x106.png 300w, https:\/\/www.dont-panic.cc\/capi\/wp-content\/uploads\/2024\/05\/offboard-onboard-screenshot-768x271.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I use a Dell 9020m Micro-PC as &#8220;terminal-server&#8221; for development. It has a small SSD, but also a larger HDD attached. I&#8217;ve created two simple bash-scripts that help move projects I currently don&#8217;t work on from SSD to HDD. They add symlink to the &#8220;off-boarded&#8221; location so that I can basically keep on working on &hellip; <a href=\"https:\/\/www.dont-panic.cc\/capi\/2024\/05\/22\/helper-bash-scripts-to-move-projects-from-your-small-ssd-to-a-larger-hdd-and-back\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Helper bash scripts to move projects from your small SSD to a larger HDD (and back)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,4],"tags":[257,225,259,260,258],"class_list":["post-746","post","type-post","status-publish","format-standard","hentry","category-computer","category-development","tag-bash","tag-development","tag-github","tag-project","tag-shell"],"_links":{"self":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/comments?post=746"}],"version-history":[{"count":4,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/746\/revisions"}],"predecessor-version":[{"id":758,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/746\/revisions\/758"}],"wp:attachment":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/media?parent=746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/categories?post=746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/tags?post=746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}