# Can I backup existing repository into another?

**URL:** <https://kopia.discourse.group/t/can-i-backup-existing-repository-into-another/2435>\
**Category:** General Topics\
**Created:** [November 18, 2023, 6:02am UTC](https://kopia.discourse.group/t/can-i-backup-existing-repository-into-another/2435 "2023-11-18T06:02:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![junglebell](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@junglebell](https://kopia.discourse.group/u/junglebell)\
**Post date:** [November 18, 2023, 6:02am UTC](https://kopia.discourse.group/t/can-i-backup-existing-repository-into-another/2435/1 "2023-11-18T06:02:08Z")

</div>

![Kopia repo plan](https://global.discourse-cdn.com/free1/uploads/kopia/original/1X/01beeb4981e893ae09f88a17a41cb15f31bc2da3.png)

This diagram represents what I’m trying to do with Kopia.

“Repo A” on “/mnt/client-backup” of host server is working.

Can I also create “Repo B” on another mount of the same server and back them up as depicted in yellow arrows?

I tried creating another repository (Repo B) and it disconnected the first one (Repo A). I’d appreciate any help or pointers.

Thanks so much!

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/kapitainsky/32/535_2.png) [@kapitainsky](https://kopia.discourse.group/u/kapitainsky)\
**Post date:** [November 18, 2023, 6:56am UTC](https://kopia.discourse.group/t/can-i-backup-existing-repository-into-another/2435/2 "2023-11-18T06:56:50Z")

</div>

You can have multiple repos connected at the same time but make sure that they are using different config files - `--config-file` flag - otherwise `repository.config` is always used.

AFAIK you can not start second serve on the same host but not sure though why you would want it.

To have your repo A backup the easiest would be to periodically sync it to another drive using e.g. `rsync`.

On the other hand IMO if this is another disk on the same server I think you would better use it as a RAID 1 with BTRFS or ZFS.

---

<div class="post-metadata">

**Author:** ![ted](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@ted](https://kopia.discourse.group/u/ted)\
**Post date:** [November 19, 2023, 9:20am UTC](https://kopia.discourse.group/t/can-i-backup-existing-repository-into-another/2435/3 "2023-11-19T09:20:47Z")

</div>

I was trying to do backup of a repo at one point until it was suggested here that I should just use the kopia sync-to command to duplicate the repo elsewhere. That worked well and seems more efficient.  
Could you consider the same and create a separate repo for the server files? (abc, xyz) Thus end up with two additional repos i.e. Repo B (duplicate of A) and repo C (abc, xyz host files).
