{"id":234,"date":"2008-03-20T16:00:29","date_gmt":"2008-03-20T15:00:29","guid":{"rendered":"https:\/\/www.tomfotherby.com\/blog\/?p=234"},"modified":"2009-09-06T17:37:07","modified_gmt":"2009-09-06T16:37:07","slug":"external-hard-drive-20mar08","status":"publish","type":"post","link":"https:\/\/www.tomfotherby.com\/blog\/index.php\/2008\/03\/external-hard-drive-20mar08\/","title":{"rendered":"MyBook USB External Hard Drive &#8211; 20\/Mar\/2007 (Birthday present from Kix)"},"content":{"rendered":"<table>\n<td>\n<img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.tomfotherby.com\/Images\/Toys\/WDMyBook500GB.jpg?w=620&#038;ssl=1\">\n<\/td>\n<td>\nThis quality half-terrabyte Western Digital external hard drive is to replace our now broken <a href=\"https:\/\/www.tomfotherby.com\/blog\/index.php\/2006\/07\/network-300gb-nas-hard-drive-8th-july-2006-ebay-purchase-120\/\">NAS drive<\/a>. Instead of using a NAS drive we have created a Samba share on our server which we find more convenient.\n<\/td>\n<\/tr>\n<\/table>\n<p>This 2nd drive is for backing up our files using <i>rsync<\/i> to mirror our primary hard disk. <\/p>\n<p>We map the USB hard disk on our Ubuntu 8.04 machine by putting the following in <i>\/etc\/fstab<\/i>:<\/p>\n<pre>\r\n<code>\r\n\/dev\/sdb1   \/home\/fotherby\/Bitbucket    ext3    user,rw 0       0\r\n<\/code>\r\n<\/pre>\n<p>We call our backup drive &#8220;Bitbucket&#8221; which is a name we learnt from the <acronym title=\"Imperial Collage (University)\">IC<\/acronym> <acronym title=\"Department of Computing\">DOC<\/acronym> labs. We do a nightly backup by putting the following script in <i>\/etc\/cron.daily\/ourBackup<\/i>:<\/p>\n<pre>\r\n<code>\r\n#!\/bin\/sh\r\n\r\nrsync -a --delete \/home\/fotherby\/OurStuff \/home\/fotherby\/Bitbucket\/CharmeleonMirror\/\r\nrsync -a --delete \/var\/www\/tomfotherby \/home\/fotherby\/Bitbucket\/CharmeleonMirror\/\r\n<\/code>\r\n<\/pre>\n<ul>\n<li><b>-a<\/b>: Archive. This causes rsync to maintain things like file permissions and ownerships (same as -rlptgoD).\n<li><b>&#8211;delete<\/b>: This tells rsync to delete files that are no longer on the server from the backup. The delete is done BEFORE any of the new data is transferred.\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This quality half-terrabyte Western Digital external hard drive is to replace our now broken NAS drive. Instead of using a NAS drive we have created a Samba share on our server which we find more convenient. This 2nd drive is for backing up our files using rsync to mirror our primary hard disk. We map [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,6],"tags":[37],"class_list":["post-234","post","type-post","status-publish","format-standard","hentry","category-techjournal","category-toy","tag-hardware"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=234"}],"version-history":[{"count":1,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/234\/revisions"}],"predecessor-version":[{"id":1246,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/234\/revisions\/1246"}],"wp:attachment":[{"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}