{"id":1894,"date":"2024-06-30T02:02:58","date_gmt":"2024-06-30T06:02:58","guid":{"rendered":"https:\/\/www.rfdm.com\/blog\/?p=1894"},"modified":"2024-06-30T02:02:58","modified_gmt":"2024-06-30T06:02:58","slug":"using-github-for-repository-backups","status":"publish","type":"post","link":"https:\/\/www.rfdm.com\/blog\/?p=1894","title":{"rendered":"Using GitHub for repository backups"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Just a note to myself since it&#8217;s convenient to have another set of off-site backups of some of my repositories&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ll use libDwm as an example here.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gh repo create libDwm --public\ncd ~\/tmp\ngit clone --mirror git@depot:libDwm\ncd libDwm.git\ngit push --mirror git@github.com:dwmcrobb\/libDwm<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Just a note to myself since it&#8217;s convenient to have another set of off-site backups of some of my repositories&#8230; I&#8217;ll use libDwm as an example here.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-1894","post","type-post","status-publish","format-standard","hentry","category-software-development"],"_links":{"self":[{"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1894"}],"version-history":[{"count":1,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1894\/revisions"}],"predecessor-version":[{"id":1895,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1894\/revisions\/1895"}],"wp:attachment":[{"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rfdm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}