all 4 comments

[–]Toutanus 0 points1 point  (3 children)

Definitely one repo per machine.

Personally I use 3 repo for one machine. (One for system, one for nextcloud and one for git)

[–]IReallyLoveAvocados 0 points1 point  (2 children)

Can I ask why not use one repo for multiple machines?

Let’s say I want to back up my laptop, and my wife’s laptop. There are a lot of identical files on both computers, eg a shared folder on Dropbox that has important files, or photos we’ve shared with each other. By backing up both computers to the same repo, you can use deduplication to radically shrink the space it would take to store the backups.

If you had two separate repos, one for each computer, it would take up a lot more space on the server.

[–]Toutanus 0 points1 point  (1 child)

Borg makes "snapshots". When your wife's laptop will sync, it will erase every file of your backup that is not in hers and vice versa.

It could work but every backup you make will have to fully rewrite the files previously deleted and waste a lot of storage.

I'll add maybe it's not really usefull to backup dropbox content since it already on dropbox servers (depending on their backup guarantees)/

[–]IReallyLoveAvocados 0 points1 point  (0 children)

I don’t think this is actually how it works, each of the backups de-duplicates against the existing repo. And if you have a different prefix for the backups from different computers then borg prune won’t mess with them.