{"id":1353,"date":"2022-06-07T16:27:51","date_gmt":"2022-06-07T22:27:51","guid":{"rendered":"https:\/\/www.schwie.com\/brad\/?p=1353"},"modified":"2025-05-23T12:15:18","modified_gmt":"2025-05-23T18:15:18","slug":"jailbroken-time-capsule-and-scp","status":"publish","type":"post","link":"https:\/\/www.schwie.com\/brad\/?p=1353","title":{"rendered":"Jailbroken Time Capsule and scp"},"content":{"rendered":"<p>After <a href=\"https:\/\/www.schwie.com\/brad\/?p=1315\">jailbreaking each of my Time Capsules<\/a>, I wanted to transfer a pair of .backupbundle files, but they refused to transfer via Finder, so much for drag and drop compatibility. Just as well, there&#8217;s a secure way to do it via Terminal.app using these instructions:<\/p>\n<p>1. In macOS, mount a disk from each Time Capsule drive you&#8217;d like to pass information between. (*this step is mandatory, if not, the path \/Volumes\/dk2\/ShareRoot in the following steps will not be accessible)<br \/>\n2. Open Terminal.app.<br \/>\n3a. To transfer data from your Time Capsule to a drive mounted locally, execute this command from your Mac:<\/p>\n<p>scp -3 -r root@10.0.1.15:\/Volumes\/dk2\/ShareRoot\/tina.backupbundle \/Volumes\/WD\\ 4GB\\ Backup<\/p>\n<p>3b. To transfer data between a pair of Time Capsules, this command should work:<\/p>\n<p>scp -3 -r root@10.0.1.15:\/Volumes\/dk2\/ShareRoot\/tina.backupbundle root@10.0.1.1:\/Volumes\/dk2\/ShareRoot<\/p>\n<p>4. You can continue to monitor the status of the transfer in the Terminal.app window, this will likely take several hours if the .backupbundle file is more than a terabyte.<\/p>\n<p>If you are doing this transfer, you too may be like me and finding your internal Time Capsule drive out of space. If you make a secure shell connection to your Time Capsule, you can execute the following command to find out how much space remains on the Time Capsules internal storage and disk drive:<\/p>\n<p>df -h<\/p>\n<p>Filesystem Size Used Avail %Cap Mounted on<br \/>\n\/dev\/md0a 15M 11M 4.5M 70% \/<br \/>\n\/dev\/flash2a 2.7M 63K 2.5M 2% \/mnt\/Flash<br \/>\ntmpfs 16M 4.0K 16M 0% \/mnt\/Memory<br \/>\n\/dev\/dk2 2.7T 2.0T 746G 73% \/Volumes\/dk2<\/p>\n<p>In the case above, only 0.7 TB remained on the storage disk and I needed a bit more to fit everyone in the family&#8230;<\/p>\n<p>** UPDATE 11-16-2024 **<\/p>\n<p>Due to funkiness with DSS and macOS, step 3b failed for me today. To get around this, I logged into one Time Capsule at 10.0.1.15 and issued the following command to copy a backup file from 10.0.1.1:<\/p>\n<p><code>scp -3 -r root@10.0.1.1:\/Volumes\/dk2\/ShareRoot\/Pro.sparsebundle \/Volumes\/dk2\/ShareRoot<\/code><\/p>\n<p>So far it&#8217;s happy and continues to copy. Will check back if\/when this fails\/succeeds. Based on initial transfer speeds, it&#8217;s averaging about 5.5 MB\/s, I can live with that though copying 2TB may take the rest of the weekend! At least the two Time Capsules can sort this out between each other and don&#8217;t need an intermediary machine, which step 3b attempted to offer.<\/p>\n<p>basement-shop-airport-time-capsule# scp -3 -r root@10.0.1.1:\/Volumes\/dk2\/ShareRoot\/Pro.sparsebundle \/Volumes\/dk2\/ShareRoot<br \/>\nThe authenticity of host &#8216;10.0.1.1 (10.0.1.1)&#8217; can&#8217;t be established.<br \/>\nRSA key fingerprint is 35:f9:2a:02:ac:5f:9f:f7:6a:21:33:1c:27:d7:7e:b4.<br \/>\nAre you sure you want to continue connecting (yes\/no)? yes<br \/>\nWarning: Permanently added &#8216;10.0.1.1&#8217; (RSA) to the list of known hosts.<br \/>\nroot@10.0.1.1&#8217;s password:<br \/>\n0 100% 256MB 4.6MB\/s 7.4MB\/s 00:56<br \/>\n1 100% 256MB 5.5MB\/s 7.4MB\/s 00:47<br \/>\n10 100% 256MB 5.5MB\/s 7.4MB\/s 00:47<br \/>\n100 100% 256MB 5.6MB\/s 7.4MB\/s 00:46<br \/>\n1000 100% 256MB 5.6MB\/s 7.5MB\/s 00:46<br \/>\n1001 46% 120MB 5.7MB\/s 5.6MB\/s 00:24 ETA<\/p>\n<p>Also, before I executed the above command:<\/p>\n<p><code>trap '' HUP<\/code><\/p>\n<p>The above command allows the scp command to continue in the background even after I disconnect the ssh session. To verify this, I closed the Terminal window on my Mac and then reconnected and executed top, sure enough, scp is still going off:<\/p>\n<p>load averages: 2.19, 1.89, 1.49; up 0+01:53:38 01:09:23<br \/>\n32 processes: 8 runnable, 23 sleeping, 1 on CPU<br \/>\nCPU states: 49.5% user, 0.0% nice, 44.4% system, 6.1% interrupt, 0.0% idle<br \/>\nMemory: 137M Act, 68M Inact, 124K Wired, 5584K Exec, 185M File, 7192K Free<br \/>\nSwap:<\/p>\n<p>PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND<br \/>\n967 root 29 0 24M 5500K RUN 5:57 68.46% 68.46% ssh<br \/>\n244 root 85 0 23M 2120K RUN 4:21 15.53% 15.53% mDNSResponde<br \/>\n1220 root 84 0 21M 1844K RUN 1:03 10.25% 10.25% scp<br \/>\n486 root 43 0 21M 2276K CPU 0:00 0.16% 0.15% top<\/p>\n<p>NetBSD on Apple Time Capsules is the bomb. Here are some other bits\/links that might be helpful later:<\/p>\n<p><a href=\"https:\/\/www.tumfatig.net\/2010\/netbsd-on-mac-mini-ppc\/\">https:\/\/www.tumfatig.net\/2010\/netbsd-on-mac-mini-ppc\/<\/a><\/p>\n<p><a href=\"https:\/\/forums.freebsd.org\/threads\/how-to-mount-a-mac-gpt-drive-onto-a-working-freebsd-system.92697\/\">https:\/\/forums.freebsd.org\/threads\/how-to-mount-a-mac-gpt-drive-onto-a-working-freebsd-system.92697\/<\/a><\/p>\n<p><a href=\"https:\/\/apple.stackexchange.com\/questions\/471836\/how-do-i-mount-a-disk-using-macfuse\">https:\/\/apple.stackexchange.com\/questions\/471836\/how-do-i-mount-a-disk-using-macfuse<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After jailbreaking each of my Time Capsules, I wanted to transfer a pair of .backupbundle files, but they refused to transfer via Finder, so much for drag and drop compatibility. Just as well, there&#8217;s a secure way to do it &hellip; <a href=\"https:\/\/www.schwie.com\/brad\/?p=1353\">Continue reading <span class=\"meta-nav\">&rarr;<\/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":[1],"tags":[],"class_list":["post-1353","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1353"}],"version-history":[{"count":10,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1353\/revisions"}],"predecessor-version":[{"id":1949,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/1353\/revisions\/1949"}],"wp:attachment":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}