PBS: 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 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:
  1. Update and Reboot:
apt update
apt upgrade
  1. Prepare the Backup Drive:
  1. Add PBS to Proxmox:
  1. Configure Proxmox:

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:
apt install samba
  1. Configure Samba:
nano /etc/samba/smb.conf
[SharedDrive]
path = /mnt/new-storage
browseable = yes
read only = no
guest ok = yes
force user = root
  1. Set Permissions:
chmod -R 0777 /mnt/new-storage

     This makes the directory readable and writable by all users. Adjust permissions as necessary depending on your security requirements.

  1. Restart Samba Service:
systemctl restart smbd

Step 3: Access the Share from Windows

  1. Access the Share:
  1. Map the Network Drive Permanently (Optional):

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: Add a Linux user if it doesn't already exist:
adduser yourusername

Add the user to Samba:

smbpasswd -a yourusername
  1. Modify Samba Configuration: Edit the Samba configuration file:
nano /etc/samba/smb.conf

Modify the share definition to require authentication:

[SharedDrive]
path = /mnt/new-storage
browseable = yes
read only = no
valid users = yourusername
force user = root
  1. Restart Samba Service: Apply the changes by restarting the Samba service:
systemctl restart smbd
  1. Access the Share from Windows: When prompted, enter the username (yourusername) and the password set with 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.


Revision #5
Created 3 December 2024 04:24:50 by Jack Waterhouse
Updated 7 April 2025 22:31:55 by Jack Waterhouse