Backup to external HDD (drive rotation)

basstscho

New Member
Jan 23, 2024
13
0
1
I have an external USB-drive rotation backup which worked very well for some of my file servers and I'd also like to implement this with PBS. It should contain a copy of a local datastore (which is backup-target for multiple pve). The external drive is connected over a LAN-USB-Interface and mounted localy on the PBS.

What I now tried to do:
- I created a local mountpoint /mnt/usbdisk and created a new datastore referring this mountpoint
- The local sync worked perfect
- Than I unmounted and disconnected USB-drive1 and mounted USB-drive2 to the same mountpoint.
- My hope was, that PBS resyncs the local datastore again to the external datastore with the missing elements (in this case all data). But unfortunately this doesn't worked. It seems that it has the existing chunks "in mind":
Code:
sync group vm/101 failed - inserting chunk on store 'usbdisk' failed for bb9f8df61474d25e71fa00722318cd387396ca1736605e1248821cc0de3d3af8 - mkstemp "/mnt/usbdisk/.chunks/bb9f/bb9f8df61474d25e71fa00722318cd387396ca1736605e1248821cc0de3d3af8.tmp_XXXXXX" failed: ENOENT: No such file or directory
- Is there a way to force a complete resync?

Thank you and best,
Johannes
 
You need to work with one datastore for each rotating disk.
Also keep in mind that you will have to prune+GC+re-verify each datastore, so each rotating disk, regularily which might be very slow using HDDs.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!