Hi. Newbie here.
My newbie self created a script to back up three mounts from my NAS.
Oops, the script created a separate repo for each mount. Five days of copying later…
I think I would prefer a single repo with three sources feeding it, potentially each with their own policies, but sharing dedupe.
Can I rename the largest repo and then migrate the other two into it?
Would it be better to create a new repo and migrate all three into it?
I’m hoping this can be done “locally” on the host that has the repo, rather than from the NAS.
You can use:
Are you sure, that you created indeed 3 separate repos? To create a repo, you’d have to go through some serious scripting, when doing that remotely… e.g checking, if the repo already exists before even trying to create a new repo before first run…
Also, since you seem to have a Kopia server running… you’d have to have a separate instance of Kopia server for each repo, since Kopia server only supports one repo per instance…
I wouldn’t recommend using kopia snapshot migrate
in this case. As this command is basically reading, decrypting, decompressing, compressing, encrypting and writing one snapshot after the other it can be very slow. Migrating a 5TB repository took 1 week in my case.
If the repository is just a few days old it’s faster to start from scratch.
Renaming the repo seems to work without issue, allowing me to keep the largest of the three.
Another thing slowing down migration in my case is that the reads and writes are to the same device as opposed to the reads from NAS and writes to backup.
I ended up:
Renaming the repo to what I want (pool-based rather than mount-point based)
Creating new snapshots from the NAS to the new repo rather than migrating.
(In progress.)
Thanks for the feedback, all.
No kopia server.
Just a script that looped through “kopia repository create” with each mount-point rather than once for the pool and snapshots for each mount-point. Trivially stupid on my part.
Switched to Kopia server and speed has improved. Didn’t realize how easy server mode would be.