Backing up your desktop PC running Linux Mint using the Proxmox Backup Client is a great way to create secure, deduplicated, and incremental backups. Proxmox Backup Client is a command-line tool designed to work with a Proxmox Backup Server, which handles the storage and management of backups. Below, I'll walk you through the process step by step. This assumes you have a Proxmox Backup Server already set up and accessible (e.g., on a separate machine or VM). If you don't have a Proxmox Backup Server, you'll need to install one first—Proxmox provides a free version for this purpose.
Prerequisites
Before starting, ensure the following:
- Proxmox Backup Server: You need a running Proxmox Backup Server. You can install it on a dedicated machine or a VM. Download it from the Proxmox website and follow their installation guide. Once set up, note the server's IP address or hostname (e.g.,
192.168.1.100), and create a backup user with appropriate permissions.
- Linux Mint Compatibility: Linux Mint is based on Ubuntu, so the Proxmox Backup Client should install without issues. However, Proxmox repositories are primarily for Debian, so we'll use a compatible approach.
- Network Access: Your Linux Mint PC must be able to communicate with the Proxmox Backup Server over the network.
- Backup Strategy: Decide what to back up. For a desktop PC, you might want to back up your home directory (
/home), important files, or even the entire system. Proxmox Backup Client supports file-level backups and can handle incremental changes efficiently.
Step 1: Install Proxmox Backup Client on Linux Mint
Proxmox Backup Client can be installed via the Proxmox repository or by downloading a DEB package. Since Linux Mint is Ubuntu-based, we'll add the Proxmox repository for Debian (as it's compatible) and install the client. Use the repository that matches your system's Ubuntu base (e.g., Ubuntu 20.04 for Mint 20 uses codename "focal"). If you're unsure, run lsb_release -cs in the terminal to get the codename.
Installation Steps:
-
Add the Proxmox GPG key (for package verification):
sudo wget -O /etc/apt/trusted.gpg.d/proxmox-backup.asc https://enterprise.proxmox.com/debian/proxmox-backup-release-bullseye.gpg
-
Add the Proxmox Backup Server repository:
-
Update the package list:
sudo apt update
-
Install the Proxmox Backup Client:
sudo apt install proxmox-backup-client
After installation, verify that the client is working by running:
proxmox-backup-client version
This should display the version number if installed correctly.
Step 2: Configure the Proxmox Backup Client
Before you can back up data, you need to configure the client to connect to your Proxmox Backup Server. This involves setting up a repository and authenticating.
-
Create a Backup User on the Proxmox Backup Server:
- Log in to the Proxmox Backup Server web interface (usually at
https://your-server-ip:8007).
- Go to "Datastore" > "Users" and create a new user (e.g.,
backupuser) with the group "Backup". This user will be used for authentication.
- Note the username (e.g.,
backupuser@pbs) and set a strong password.
-
Set Up the Repository on the Client:
Step 3: Run a Backup
Now that the client is configured, you can start backing up data. Proxmox Backup Client uses a snapshot-based system for efficient incremental backups.
-
Backup a Specific Directory:
-
Backup the Entire System (Optional):
-
Incremental Backups:
- Proxmox Backup Client automatically handles incremental backups. Each backup creates a snapshot, and subsequent backups only store changes, saving space.
After the backup, you can list snapshots with:
proxmox-backup-client snapshot list --repository backupuser@pbs@192.168.1.100:tank
Step 4: Automate Backups with Cron
To run backups automatically, use Linux's cron scheduler.
-
Create a Backup Script (optional for complex backups):
-
Set Up a Cron Job:
Step 5: Restore Backups
If you need to restore data:
- List available snapshots:
proxmox-backup-client snapshot list --repository backupuser@pbs@192.168.1.100:tank.
- Restore a specific backup:
proxmox-backup-client restore root.pxar snapshot-name output-dir --repository backupuser@pbs@192.168.1.100:tank.
- For example, to restore your home directory:
proxmox-backup-client restore home.pxar 2023-10-01T12:00:00Z /home/restored.
Tips and Best Practices
- Security: Use a strong password for your backup user and consider enabling encryption if your data is sensitive. Proxmox Backup Server supports encryption at rest.
- Monitoring: Check backup logs for errors. You can redirect output to a log file in your cron job, e.g.,
>> /var/log/backup.log 2>&1.
- Space Management: Proxmox Backup Server uses deduplication and compression, but monitor storage usage on the server.
- Testing: After setting up, test a small backup and restore to ensure everything works.
- Official Documentation: For the most accurate and up-to-date instructions, refer to the Proxmox Backup Documentation. If you run into issues with repository compatibility, the docs have sections on installing the client on non-Proxmox systems.
- Alternatives: If Proxmox Backup Server feels too complex, consider other backup solutions like rsync with cron or tools like BorgBackup, but Proxmox offers advanced features like web-based management.
If you encounter any errors during installation or configuration, feel free to provide more details (e.g., error messages or your Mint version), and I can help troubleshoot!