Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature Request: Implement a True 3-2-1 Backup Solution #7009

Answered by szaimen
mnllrnz asked this question in Ideas
Discussion options

Summary

Nextcloud’s built-in backup solution is already excellent, offering local or remote BorgBackup repositories. However, it only allows one or the other — not both.
To follow the recommended 3-2-1 backup rule (3 copies of data, 2 types of storage, 1 off-site), Nextcloud should support two independent Borg repositories simultaneously: one local, one remote.

Problem

Currently, users must choose between:

  • Local backups – fast and convenient, but not disaster-proof.
  • Remote backups – off-site and secure, but slower and dependent on connectivity.

This setup leaves only two copies of data: the live server files and a single backup archive.
Nextcloud’s docs suggest workarounds like syncing or nesting Borg repos, but those are inefficient or risky:

  • Copying/syncing repos can propagate corruption or ransomware.
  • Creating a Borg repo inside another ("repo-in-repo") is complex and discouraged.

Borg itself recommends maintaining independent repositories to avoid data propagation and ID conflicts:

"If you want redundant repositories, create them separately with borg repo-create."
BorgBackup FAQ

Proposed Enhancement

  • Allow multiple backup destinations in Nextcloud’s Backup app: one local, one remote.
  • Each destination should be initialized as an independent Borg repository (separate repo IDs/keys).
  • Add simple restore-from selection in the UI (local or remote).
  • Optionally include integrity checks (borg check) and per-destination status display.

Benefits

  • Fulfills the 3-2-1 backup principle (see ISBA whitepaper)
  • Increases protection against ransomware, corruption, and total data loss.
  • Uses Borg’s native best practices instead of custom scripts.
  • Keeps the UI simple while greatly improving resilience.

References

You must be logged in to vote

Hi, the idea is good in general but this would mean a bigger refactoring of the whole backup implementation.

I fear I will not be abke to work on this so contributions are welcome.

I also added this to #5251

Replies: 1 comment

Comment options

Hi, the idea is good in general but this would mean a bigger refactoring of the whole backup implementation.

I fear I will not be abke to work on this so contributions are welcome.

I also added this to #5251

You must be logged in to vote
0 replies
Answer selected by szaimen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
help wanted Extra attention is needed borg
2 participants

AltStyle によって変換されたページ (->オリジナル) /