User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
selfhost:backup [2024/03/22 08:38] willyselfhost:backup [2025/03/13 09:29] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Backup ======+====== E) Backup ======
  
 Doing backups for your data is, how to day, **critical**! But you need to answer a few questions first: Doing backups for your data is, how to day, **critical**! But you need to answer a few questions first:
Line 31: Line 31:
 ===== Where to store my backups? ===== ===== Where to store my backups? =====
  
-Don'store them on the server. I have OpenWRT WiFi Access Points with a USB plug, so i connected a big enough SSD over USB and that's my first backup destination. I have mounted that filesystem via NFS on the server so it's easy and simple.+You can store them on the server, but this **must not** be the only backup you do. I have OpenWRT WiFi Access Points with a USB plug, so i connected a big enough 2.5' hard drive over USB and that's my second backup destination. It is accessible via SFTP from the serverso it's easy to access.
  
-You will also need a second, off-site backup storage: some cloud system (like gdrive or dropbox) might work, but using your external server could even be a better idea. After all, you already pay for it and 99% of it's storage space is probably wasted anyway.+You will also need a third, off-site backup storage: some cloud system (like gdrive or dropbox) might work, but using your external server could even be a better idea. After all, you already pay for it and 99% of it's storage space is probably wasted anyway.
  
 Of course, if you have your in-laws with good internet connection you might plug a usb-drive there too and use that as well... More the better...  Of course, if you have your in-laws with good internet connection you might plug a usb-drive there too and use that as well... More the better... 
Line 52: Line 52:
 === Installation === === Installation ===
  
 +Unmask the latest release and emerge it:
 <code bash> <code bash>
 +echo "app-backup/restic ~amd64" >> /etc/portage/package.accept_keywords/restic
 emerge restic emerge restic
 </code> </code>
  
-=== Usage ===+After installing Restic (the CLI) you might want to install also Backrest, a nice web GUI for Restic. Refer to [[services:backrest|this]] page for more details. 
 + 
 + 
 +=== Usage (web GUI ) === 
 + 
 +To use [[services:backrest|Backrest]] you can refer to it's [[https://garethgeorge.github.io/backrest/|Wiki]] pages. 
 + 
 +=== Usage (CLI)=== 
 + 
 +The following commands are always valid, specially if your Backrest is not operational.
  
 Create new storage repository with: Create new storage repository with:
Line 81: Line 92:
 </code> </code>
 There you go. You need the stored password to automate the backup. There you go. You need the stored password to automate the backup.
 +
  
  
Line 86: Line 98:
  
 Backups for your phones and tablets is a different matter because you want it fast and effective: Backups for your phones and tablets is a different matter because you want it fast and effective:
-  * Your phone might fall into water a few minutes after taking that lifechaning picture+  * Your phone might fall into water a few minutes after taking that lifechanging picture
   * Your phone might get stolen at any time   * Your phone might get stolen at any time
   * Your phone might have limited bandwidth and/or data caps most of the time you are not home   * Your phone might have limited bandwidth and/or data caps most of the time you are not home

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information