Backup Strategy
#
3-2-1 Backup Setup
In this example, we are backing up a ZFS pool RAID 1 consisting of two 2TB Samsung 990 EVO PRO SSDs.
The goal is to implement the 3-2-1 backup strategy: three copies of your data on two different media, with one copy offsite. This setup is designed for a homelab using consumer software, which adds some challenges due to the lack of enterprise-level scalability. Here's how to do it.
##
Step 1: Install Proxmox Backup Server (PBS) with Drive Passthrough
First, install PBS with my [drive passthrough](https://git.water.house/jack/Proxmax/-/tree/main/Host/drive-passthrough)passthrough script. This passthrough drive will be our first backup. Note that while this setup is fine for a homelab, there is a risk in having the backup drive on the host machine that you should be aware of.
###
Installation Steps:
1.
-
Access Administration:
**`Administration >
.Repositories`Repositories -
2. **Update and Reboot:**
```bash
- Reboot the system if a kernel update is applied.
``` -
3. **Prepare the Backup Drive:**`Administration > Storage >
and wipe the disk you intend to use.Disks`Disks -
4. **Add PBS to Proxmox:** -
5. **Configure Proxmox:**`Datacenter > Storage > Add > Proxmox Backup
.Server`Server**ID:**Choose a unique identifier.**Server:**IP address of the PBS instance.**Username:**`root@pam`root@pam
or the appropriate user.**Password:**Password set in PBS.**Datastore:**Name you noted earlier.**Fingerprint:**Paste the fingerprint you copied.
Now, you can run your backup.
##
Step 2: Set Up Samba File Share
Since we need to spin up a Windows VM (because Rclone doesn't work well with Proton Drive and Proton Drive only supports NTFS), we'll set up a Samba file share.
###
Installation and Configuration:
1.
-
Install Samba:
**
```bash
``` -
2. **Configure Samba:**
```bash
- Add a share definition at the end of the file, assuming you want to share the
````/mnt/new-
directory (corresponding to the passed-through drive):storage`storage
```plaintext
-
```**path:**Directory you want to share.**browseable:**Allows the share to be visible when browsing network shares.**read only:**Set to`no`no
to allow writing to the share.**guest ok:**Set to`yes`yes
to allow access without a password (optional).**force user:**Ensures files are accessible to all users via Samba. -
3. **Set Permissions:**
```bash
This makes the directory readable and writable by all users. Adjust permissions as necessary depending on your security requirements.
``` -
4. **Restart Samba Service:**
```bash
```##
Step 3: Access the Share from Windows
Step 4: Secure Samba Share with a Password (Optional)
If you want to secure your Samba share with a password, follow these steps:
-
1. **Create a Samba User:**
```bash
- Add the user to Samba:
```
```bash
``` -
2. **Modify Samba Configuration:**
```bash
- Modify the share definition to require authentication:
```
```plaintext
``` -
3. **Restart Samba Service:**
```bash
``` -
4. **Access the Share from Windows:**`yourusername`yourusername
) and the password set with`smbpasswd`smbpasswd
.
By following these steps, you can share the passed-through drive on your Proxmox server with a Windows PC, allowing it to be accessed and used from both systems.