Move borg backup location procedure

AIO 12.7 on Ubuntu 24.04.

No proxies, cloudflare etc.

Borg is setup using the web interface to backup to a mounted disk. I have named the mount point incorrectly and wish to correct it.

I’d like to remount the disk that contains the borg backup from one path to another. NB its the same disk, just a different mount path. I’d like to keep the backups intact.

From /mnt/disk1/borg

To /mnt/backups/borg

I tried un-mounting, re-mounting with the correct path, but Borg stopped working and the config file disappeared (ive since reverted the mount and copied config from backup to container). Backups are working again now.

I’m happy about editing fstab, just need a procedure. Hopefully simple.

Thanks

Adrian

Ive sorted it. Simple really:

  • Add a new, temorary disk under /mnt/newlocation, leaving the backup disk mounted under /mnt/oldlocation.
  • (It would likely work if you created a directory called /mnt/newlocation; I didn’t try it. Remember to remove it before mounting the disk in the newlocation)
  • In AIO, change the borg destination to /mnt/newlocation(the borg directory does not appear, this is normal)
  • umount both the new and old locations (reboot if mounts are ‘in use’)
  • Edit /etc/fstab or manually mount the backup disk under /mnt/newlocation

Doing this seems to remove the config file from the master container, and backups will not start, so copy the config file back in:

  • cp /mnt/newlocation/borg/config /var/lib/docker/volumes/nextcloud_aio_mastercontainer/_data/data/borg.config

  • Run a backup and view the log to check all is well

  • Go as if to do a restore and check the previous backups (from days ago) are there.

Job done!

1 Like