g3492 / vzborg

Simple deduplicated encrypted backups for Proxmox
GNU Affero General Public License v3.0
55 stars 15 forks source link

Support borgbase #4

Closed Eeems closed 3 years ago

Eeems commented 3 years ago

The SSH checking done during vzborg backup to see if the repository has been initialized or not doesn't work with borgbase. I've had to comment it out for now in my local install.

Ideally the logic here would use some other method to check to see if the repository has been initialized or not: https://github.com/g3492/vzborg/blob/master/vzborg#L203-L218

A potential workaround would be to run borg init ${borg_extra} --make-parent-dirs --encryption=${encryption_mode} ${vzborg_repo} and check for an exit code of 2 to see if it already exits instead. (see https://github.com/borgbackup/borg/issues/271#issuecomment-479383294)