Proxmox Backup to Personal Cloud Storage

Guides~15 min

Use rclone to mount a personal cloud (Google Drive, Mega, Dropbox, OneDrive, etc.) as a directory on the Proxmox VE host, register it as a vzdump datastore, and back up VMs / CTs straight to the cloud — no extra script.

Consider Proxmox Backup Server first

On a second machine that meets its x86-64 requirements, Proxmox Backup Server offers incremental, deduplicated backups and optional client-side encryption. It is designed for VM backups. This guide instead covers mounting personal cloud storage such as Google Drive, Mega, OneDrive or Dropbox as a backup destination.

What you'll do

  1. Create a directory on the Proxmox host and register it as a vzdump-capable datastore.
  2. Install and configure rclone for your cloud provider.
  3. Mount the cloud folder onto the directory.
  4. Make the mount survive reboots (systemd unit — more robust than crontab).

Heads up about Proxmox vzdump backups

Proxmox vzdump archives are full backups, not incremental. Their actual size depends on the data included and compression, not just the virtual disk capacity. If one archive occupies 30 GB, five retained archives need roughly 150 GB. Set a retention policy so the cloud does not fill up.

1. Create the host directory and register it as a datastore

SSH into the host (or use the Proxmox shell) and create a mount-point directory under /mnt/. The name is arbitrary — use something that identifies the provider:

mkdir -p /mnt/gdrive

In the Proxmox web UI: Datacenter → Storage → Add → Directory.

Adding new storage in Proxmox

Configure it like this:

  • ID: gdrive (or whatever you used for the directory name)
  • Directory: /mnt/gdrive
  • Content: select VZDump backup file
Configuring new storage in Proxmox

Click Add:

New storage added in Proxmox

The directory is now registered as a Proxmox datastore — but it's still empty (no cloud is mounted on it yet).

2. Install and configure rclone

rclone is the tool that talks to cloud storage providers. Install it from Debian repositories:

apt-get update
apt-get install -y rclone

If you need a newer rclone

If you need a newer rclone than what Debian ships, use the official installer:

curl https://rclone.org/install.sh | bash

2.1 Browser-based authentication via SSH tunnel

For providers with browser-based login, the Proxmox host usually has no browser. Follow rclone’s remote-setup procedure: use your laptop’s browser and forward its localhost callback connection through SSH to rclone on the host.

From your laptop (replace ip_proxmox with the Proxmox IP):

ssh -L localhost:53682:localhost:53682 root@ip_proxmox

This SSH session opens localhost port 53682 on your laptop and forwards connections to the same port on the Proxmox host. Keep it open during the rclone configuration below.

2.2 Run rclone config

In the SSH session you just opened, run:

rclone config

Follow the prompts to add a new remote. The exact answers depend on your provider — see the rclone provider docs for Google Drive, Mega, Dropbox, OneDrive, etc. The key step is the auth question:

Use web browser to automatically authenticate rclone with remote?
 * Say Y if the machine running rclone has a web browser you can use
 * Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
y) Yes
n) No
y/n> y

Answer Y — rclone prints a localhost URL. Open it in your laptop's browser (the SSH tunnel routes it correctly), authorise the rclone application in your cloud provider, and the config completes.

When asked for the remote's name, use something matching the directory you created — e.g. gdrive.

3. Mount the cloud folder

Create a folder in your personal cloud to hold the backups. Call it something like PBC (Proxmox Backup Cloud).

Mount it onto the host directory:

rclone mount gdrive:/PBC /mnt/gdrive --allow-other --allow-non-empty --vfs-cache-mode writes
  • gdrive:/PBC — the folder in your cloud.
  • /mnt/gdrive — the host directory you registered as a datastore.

This command stays in the foreground. For testing, leave it running in a terminal and try a backup. For permanent mounting on every boot, set up a systemd unit (next section).

4. Auto-mount on every boot (systemd)

A systemd unit is more robust than crontab @reboot — it can wait for the network to be ready, restart on failure, and gives you proper logs via journalctl.

Create the unit file:

nano /etc/systemd/system/rclone-gdrive.service

Paste:

[Unit]
Description=rclone mount for Proxmox cloud backups
Wants=network-online.target
After=network-online.target

[Service]
Type=notify
ExecStart=/usr/bin/rclone mount \
    gdrive:/PBC /mnt/gdrive \
    --allow-other \
    --allow-non-empty \
    --vfs-cache-mode writes \
    --log-level INFO \
    --log-file /var/log/rclone-gdrive.log
ExecStop=/bin/fusermount -uz /mnt/gdrive
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

Adjust gdrive:/PBC and /mnt/gdrive if you used different names. Save (Ctrl+X), then enable and start:

systemctl daemon-reload
systemctl enable --now rclone-gdrive.service

Verify:

systemctl status rclone-gdrive.service
mount | grep /mnt/gdrive

The unit requests a restart after 10 seconds if the rclone process exits with a failure. This does not repair expired credentials or guarantee recovery from every network or provider error. Check /var/log/rclone-gdrive.log and journalctl -u rclone-gdrive.service -f.

Why --vfs-cache-mode writes?

With write caching, writes such as fwrite go to a local disk cache. rclone uploads a file after it is closed and the write-back delay has passed. Reserve enough local space for active backups, and verify the upload has completed before counting the cloud copy as available.

5. Configure the backup to land in the cloud

In the Proxmox UI, when scheduling a backup or running an ad-hoc one, pick the storage you registered as the target:

Selecting backup destination in Proxmox

After vzdump finishes, wait for rclone’s background upload to complete and verify the archive in the cloud provider’s interface:

Backup file in cloud storage

6. Retention — keep cloud quota under control

Proxmox vzdump archives are full backups, not incremental. Their actual size depends on the data included and compression, not just the virtual disk capacity. If one archive occupies 30 GB, five retained archives need roughly 150 GB. Set a retention policy so the cloud does not fill up.

In the Proxmox UI: Datacenter → Backup → [your job] → Retention:

Backup retention settings in Proxmox

Reasonable starter values for a home / lab setup:

  • Keep last 5 daily backups
  • Keep last 4 weekly backups
  • Keep last 6 monthly backups

Adjust based on your cloud quota and how often the VMs change.

Troubleshooting

  • Mount point /mnt/gdrive is itself on a fuse.rclone filesystem: the directory is already mounted, possibly by another rclone instance. Check that no backup is active before removing the old mount with fusermount -uz /mnt/gdrive, then restart the systemd unit.
  • Backup is extremely slow: confirm --vfs-cache-mode writes is on the ExecStart line. Check local cache performance, upload bandwidth and provider limits. The background upload can continue after vzdump finishes.
  • Backup fails with No space left on device: check local cache space and the provider’s quota. The cache commonly uses ~/.cache/rclone/. If it is full, select a cache path such as --cache-dir /var/cache/rclone on a filesystem with enough space; a different path on the same full filesystem will not help.
  • rclone authentication token expired: reconnect over SSH with the tunnel (ssh -L localhost:53682:localhost:53682 root@ip_proxmox) and run rclone config reconnect gdrive: to renew authorization.
  • Backups land but are corrupted on restore: stop using cloud storage as the only backup destination. Combine with local PBS / vzdump on a different disk for resilience.

Sponsor

If you would like to support the project.

Support me on Ko-fi

Connect

Join the community discussions on GitHub to get help, share ideas, and contribute to the project. Every idea is welcome!

Join the Discussion

ProxMenux, an open-source and collaborative project by MacRimi.