Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lomolomo2 committed Nov 3, 2024
1 parent 8d753d7 commit 09d0db5
Show file tree
Hide file tree
Showing 172 changed files with 464 additions and 231 deletions.
2 changes: 1 addition & 1 deletion blog/2019/12/24/raspberrypi-hd/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html><html lang=en><head><script type=text/javascript>var userLang=navigator.language||navigator.userLanguage;console.log(window.location.pathname),userLang.startsWith("zh")&&window.location.pathname=="/"&&(window.location.href="/zh/")</script><script type=text/javascript src=//downloads.mailchimp.com/js/signup-forms/popup/unique-methods/embed.js data-dojo-config="usePlainJson: true, isDebug: false"></script><script type=text/javascript>window.dojoRequire(["mojo/signup-forms/Loader"],function(e){e.start({baseUrl:"mc.us4.list-manage.com",uuid:"6ace4137554cb923d96ec92c7",lid:"36ce78d7a8",uniqueMethods:!0})})</script><script async src=https://cdn.splitbee.io/sb.js></script><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1"><title>Setup Lomorage secondary backup with Raspberry Pi | Lomorage</title>
<link href="https://fonts.googleapis.com/css?family=Lato:400" rel=stylesheet><script defer src=https://use.fontawesome.com/releases/v5.15.3/js/all.js></script><script async src="https://www.googletagmanager.com/gtag/js?id=G-HZV662YYMW"></script><script>var doNotTrack=!1,dnt;if(!1&&(dnt=navigator.doNotTrack||window.doNotTrack||navigator.msDoNotTrack,doNotTrack=dnt=="1"||dnt=="yes"),!doNotTrack){window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag("js",new Date),gtag("config","G-HZV662YYMW")}</script><link rel=stylesheet href=https://use.fontawesome.com/releases/v5.8.1/css/all.css integrity=sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf crossorigin=anonymous><link rel=stylesheet href=//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css integrity=sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u crossorigin=anonymous><link rel="shortcut icon" href=/img/favicon.ico type=image/x-icon><link rel=apple-touch-icon href=/img/apple-touch-icon.png><link rel=stylesheet type=text/css href=/css/style.a2d4ddf024fd938e5bbbf2d62c2f17987b805f53b4cc89d360109c27d51e9458.min.css></head><body><div class="navbar navbar--extended"><nav class=nav__mobile></nav><div class=container><div class=navbar__inner><a href=/ class=navbar__logo>Lomorage</a><nav class=navbar__menu><ul><li><a href=/>Home</a></li><li><a href=https://lomosw.lomorage.com/en/index.html class="button button__accent">Download Now</a></li><li><a href=/survey/>Survey</a></li><li><a href=/faq/>FAQ</a></li><li><a href=/blog/>Blog</a></li><li><a href=/contact/>Contact</a></li></ul></nav><div class=navbar__menu-mob><a href id=toggle><svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M16 132h416c8.837.0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163.0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837.0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837.0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837.0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837.0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z" class=""/></svg></a></div></div></div></div><div class=page__header><div class="hero__overlay hero__overlay--gradient"></div><div class=hero__mask></div><div class=page__header__inner><div class=container><div class=page__header__content><div class=page__header__content__inner id=navConverter><h1 class=page__header__title>Setup Lomorage secondary backup with Raspberry Pi</h1></div></div></div></div></div><div class=page><div class=container><div class=page__inner><div class=page__main><div class=text-container><p>Photos and video are valuable assets, having a single backup is not enough, we at least should have secondary backup besides the primary backup, and ideally one more remote backup. Lomorage currently provide the option to setup a secondary backup. There are several options to do this.</p><h1 id=table-of-contents>Table of Contents</h1><ul><li><a href=/blog/2019/12/24/raspberrypi-hd/#setup-lomorage-secondary-backup-with-raspberry-pi>Setup Lomorage secondary backup with Raspberry Pi</a><ul><li><a href=/blog/2019/12/24/raspberrypi-hd/#option-1-1-usb-hard-drive-1-usb-flash-drive-on-same-raspberry-pi>Option 1 (1 USB hard drive, 1 USB flash drive on same Raspberry Pi)</a></li><li><a href=/blog/2019/12/24/raspberrypi-hd/#option-2-2-usb-hard-drive-on-same-raspberry-pi>Option 2 (2 USB hard drive on same Raspberry Pi)</a></li><li><a href=/blog/2019/12/24/raspberrypi-hd/#option-3-2-usb-hard-drive-on-2-separate-raspberry-pis>Option 3 (2 USB hard drive on 2 separate Raspberry Pis)</a></li><li><a href=/blog/2019/12/24/raspberrypi-hd/#option-4-1-usb-drive-one-raspberry-pi-nas>Option 4 (1 USB drive one Raspberry Pi, NAS)</a></li></ul></li><li><a href=/blog/2019/12/24/raspberrypi-hd/#restore-from-the-secondary-backup>Restore from the secondary backup</a></li></ul><h1 id=setup-lomorage-secondary-backup-with-raspberry-pi>Setup Lomorage secondary backup with Raspberry Pi</h1><p>You can choose the option suits your need.</p><h2 id=option-1-1-usb-hard-drive-1-usb-flash-drive-on-same-raspberry-pi>Option 1 (1 USB hard drive, 1 USB flash drive on same Raspberry Pi)</h2><p>Raspberry Pi should have no problem to power one USB hard drive, you can even add one more USB flash drive. Since normally, a hard drive is expected to have <a href=https://www.datanumen.com/blogs/usb-flash-drive-vs-external-hard-drive-better-storing-data/>a much longer lifespan</a>, and USB flash drive has <a href=https://www.flashbay.com/blog/usb-life-expectancy>limited number of write/erase cycles</a>, it&rsquo;s better to use hard drive as the primary storage and USB hard drive.</p><h2 id=option-2-2-usb-hard-drive-on-same-raspberry-pi>Option 2 (2 USB hard drive on same Raspberry Pi)</h2><p>Most likely, Raspberry Pi won&rsquo;t be able to provide that much power two USB hard drives. You can use the USB hub with power supply, which means the USB hard drive will be powered by the USB hub instead of Raspberry Pi.</p><ul><li><p><a href=https://www.walmart.com/ip/Plugable-USB-Hub-USB-2-0-7-Port-15W/134245816>USB 2.0 7-Port Hub with 15W Power Adapter from Plugable Technologies</a></p></li><li><p><a href=https://www.adafruit.com/product/961>USB 2.0 Powered Hub - 7 Ports with 5V 2A Power Supply</a></p></li></ul><h2 id=option-3-2-usb-hard-drive-on-2-separate-raspberry-pis>Option 3 (2 USB hard drive on 2 separate Raspberry Pis)</h2><p>It would be safer if you have two setups in different places, the Lomorage OS image already enabled Samba file share service by default, so what you can do it&rsquo;s actually mount the hard drive of the secondary setup in the the first setup.</p><p>For example, if secondary Pi has ip &ldquo;192.168.1.155&rdquo;, the driver is mount at &ldquo;/media/WD_90C27F73C27F5C82&rdquo;.</p><p>One the primary Pi, we can use the following command to mount it, just change the ip address and mount directory according to your setup.</p><pre tabindex=0><code>mkdir /media/WD_90C27F73C27F5C82
<link href="https://fonts.googleapis.com/css?family=Lato:400" rel=stylesheet><script defer src=https://use.fontawesome.com/releases/v5.15.3/js/all.js></script><script async src="https://www.googletagmanager.com/gtag/js?id=G-HZV662YYMW"></script><script>var dnt,doNotTrack=!1;if(!1&&(dnt=navigator.doNotTrack||window.doNotTrack||navigator.msDoNotTrack,doNotTrack=dnt=="1"||dnt=="yes"),!doNotTrack){window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag("js",new Date),gtag("config","G-HZV662YYMW")}</script><link rel=stylesheet href=https://use.fontawesome.com/releases/v5.8.1/css/all.css integrity=sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf crossorigin=anonymous><link rel=stylesheet href=//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css integrity=sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u crossorigin=anonymous><link rel="shortcut icon" href=/img/favicon.ico type=image/x-icon><link rel=apple-touch-icon href=/img/apple-touch-icon.png><link rel=stylesheet type=text/css href=/css/style.a2d4ddf024fd938e5bbbf2d62c2f17987b805f53b4cc89d360109c27d51e9458.min.css></head><body><div class="navbar navbar--extended"><nav class=nav__mobile></nav><div class=container><div class=navbar__inner><a href=/ class=navbar__logo>Lomorage</a><nav class=navbar__menu><ul><li><a href=/>Home</a></li><li><a href=https://lomosw.lomorage.com/en/index.html class="button button__accent">Download Now</a></li><li><a href=/survey/>Survey</a></li><li><a href=/faq/>FAQ</a></li><li><a href=/blog/>Blog</a></li><li><a href=/contact/>Contact</a></li></ul></nav><div class=navbar__menu-mob><a href id=toggle><svg role="img" viewBox="0 0 448 512"><path d="M16 132h416c8.837.0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163.0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837.0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837.0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837.0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837.0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z" class=""/></svg></a></div></div></div></div><div class=page__header><div class="hero__overlay hero__overlay--gradient"></div><div class=hero__mask></div><div class=page__header__inner><div class=container><div class=page__header__content><div class=page__header__content__inner id=navConverter><h1 class=page__header__title>Setup Lomorage secondary backup with Raspberry Pi</h1></div></div></div></div></div><div class=page><div class=container><div class=page__inner><div class=page__main><div class=text-container><p>Photos and video are valuable assets, having a single backup is not enough, we at least should have secondary backup besides the primary backup, and ideally one more remote backup. Lomorage currently provide the option to setup a secondary backup. There are several options to do this.</p><h1 id=table-of-contents>Table of Contents</h1><ul><li><a href=/blog/2019/12/24/raspberrypi-hd/#setup-lomorage-secondary-backup-with-raspberry-pi>Setup Lomorage secondary backup with Raspberry Pi</a><ul><li><a href=/blog/2019/12/24/raspberrypi-hd/#option-1-1-usb-hard-drive-1-usb-flash-drive-on-same-raspberry-pi>Option 1 (1 USB hard drive, 1 USB flash drive on same Raspberry Pi)</a></li><li><a href=/blog/2019/12/24/raspberrypi-hd/#option-2-2-usb-hard-drive-on-same-raspberry-pi>Option 2 (2 USB hard drive on same Raspberry Pi)</a></li><li><a href=/blog/2019/12/24/raspberrypi-hd/#option-3-2-usb-hard-drive-on-2-separate-raspberry-pis>Option 3 (2 USB hard drive on 2 separate Raspberry Pis)</a></li><li><a href=/blog/2019/12/24/raspberrypi-hd/#option-4-1-usb-drive-one-raspberry-pi-nas>Option 4 (1 USB drive one Raspberry Pi, NAS)</a></li></ul></li><li><a href=/blog/2019/12/24/raspberrypi-hd/#restore-from-the-secondary-backup>Restore from the secondary backup</a></li></ul><h1 id=setup-lomorage-secondary-backup-with-raspberry-pi>Setup Lomorage secondary backup with Raspberry Pi</h1><p>You can choose the option suits your need.</p><h2 id=option-1-1-usb-hard-drive-1-usb-flash-drive-on-same-raspberry-pi>Option 1 (1 USB hard drive, 1 USB flash drive on same Raspberry Pi)</h2><p>Raspberry Pi should have no problem to power one USB hard drive, you can even add one more USB flash drive. Since normally, a hard drive is expected to have <a href=https://www.datanumen.com/blogs/usb-flash-drive-vs-external-hard-drive-better-storing-data/>a much longer lifespan</a>, and USB flash drive has <a href=https://www.flashbay.com/blog/usb-life-expectancy>limited number of write/erase cycles</a>, it&rsquo;s better to use hard drive as the primary storage and USB hard drive.</p><h2 id=option-2-2-usb-hard-drive-on-same-raspberry-pi>Option 2 (2 USB hard drive on same Raspberry Pi)</h2><p>Most likely, Raspberry Pi won&rsquo;t be able to provide that much power two USB hard drives. You can use the USB hub with power supply, which means the USB hard drive will be powered by the USB hub instead of Raspberry Pi.</p><ul><li><p><a href=https://www.walmart.com/ip/Plugable-USB-Hub-USB-2-0-7-Port-15W/134245816>USB 2.0 7-Port Hub with 15W Power Adapter from Plugable Technologies</a></p></li><li><p><a href=https://www.adafruit.com/product/961>USB 2.0 Powered Hub - 7 Ports with 5V 2A Power Supply</a></p></li></ul><h2 id=option-3-2-usb-hard-drive-on-2-separate-raspberry-pis>Option 3 (2 USB hard drive on 2 separate Raspberry Pis)</h2><p>It would be safer if you have two setups in different places, the Lomorage OS image already enabled Samba file share service by default, so what you can do it&rsquo;s actually mount the hard drive of the secondary setup in the the first setup.</p><p>For example, if secondary Pi has ip &ldquo;192.168.1.155&rdquo;, the driver is mount at &ldquo;/media/WD_90C27F73C27F5C82&rdquo;.</p><p>One the primary Pi, we can use the following command to mount it, just change the ip address and mount directory according to your setup.</p><pre tabindex=0><code>mkdir /media/WD_90C27F73C27F5C82

# user pass is the username password on 2nd Pi, that is the default.
# uid 1000 and gid 1000 is for mount it as user Pi on 1st Pi
Expand Down
Loading

0 comments on commit 09d0db5

Please sign in to comment.