# Move Snapshot to a different location

**URL:** <https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595>\
**Category:** General Topics\
**Created:** [December 31, 2024, 10:08am UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595 "2024-12-31T10:08:54Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Unengaged3932](https://avatars.discourse-cdn.com/v4/letter/u/91b2a8/32.png) [@Unengaged3932](https://kopia.discourse.group/u/Unengaged3932)\
**Post date:** [December 31, 2024, 10:08am UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595/1 "2024-12-31T10:08:54Z")

</div>

I tried to use `snapshot move-history` to move my snapshot to a different location but the code below returns nothing. would appreciate any help!

```ruby
kopia snapshot move-history SSS@desktop-4wddqa0:"D:/Gamess" SSS@desktop-4wddqa0:"E:/Games" --dry-run

```

---

<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:** [December 31, 2024, 10:33am UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595/2 "2024-12-31T10:33:36Z")

</div>

> [@Unengaged3932](#):
>
> move-history

Read [docs](https://kopia.io/docs/reference/command-line/common/snapshot-move-history/) to understand what `move-history` does.

What you want is [repository sync-to filesystem](https://kopia.io/docs/reference/command-line/common/repository-sync-to-filesystem/).

more info here:

> **[Synchronization](https://kopia.io/docs/advanced/synchronization/)**
>
> Fast and Secure Open-Source Backup Software for Windows, Mac, and Linux

But key question is why you make your life so complicated? To copy/move repository from one local location to another it is enough to use your OS copy/move functionality… Kopia repository is just bunch of files.

---

<div class="post-metadata">

**Author:** ![Unengaged3932](https://avatars.discourse-cdn.com/v4/letter/u/91b2a8/32.png) [@Unengaged3932](https://kopia.discourse.group/u/Unengaged3932)\
**Post date:** [December 31, 2024, 10:59am UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595/4 "2024-12-31T10:59:09Z")

</div>

I’m not trying to move my whole repository actually, just a single snapshot within it. I have changed the location of my games folder and I need kopia to use the new location for making snapshot. If I simply add a new snapshot then there would be 2 snapshots in my repository one deprecated and the other new snapshot with no history backup. Having 2 snapshots would be storage inefficient.

---

<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:** [December 31, 2024, 11:01am UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595/5 "2024-12-31T11:01:41Z")

</div>

many ways to do it:

1. copy all repo and remove snapshots you do not want
2. use `repository sync-to`
3. use `snapshot migrate`

For sure not `move-history`

---

<div class="post-metadata">

**Author:** ![Unengaged3932](https://avatars.discourse-cdn.com/v4/letter/u/91b2a8/32.png) [@Unengaged3932](https://kopia.discourse.group/u/Unengaged3932)\
**Post date:** [December 31, 2024, 11:11am UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595/6 "2024-12-31T11:11:46Z")

</div>

Could you explain more please? I have only one repository, and I already copy and paste D:/Games to E:/Games manually. Which command to use to allow one specific snapshot to take new data from “E:/Games” path in the future?

---

<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:** [December 31, 2024, 11:14am UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595/7 "2024-12-31T11:14:07Z")

</div>

Simply start using this new repo? If you copied everything it contains old repo data and history already.

---

<div class="post-metadata">

**Author:** ![Unengaged3932](https://avatars.discourse-cdn.com/v4/letter/u/91b2a8/32.png) [@Unengaged3932](https://kopia.discourse.group/u/Unengaged3932)\
**Post date:** [December 31, 2024, 11:40am UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595/8 "2024-12-31T11:40:42Z")

</div>

Maybe I didn’t express myself clearly, `D:/Games` is the folder I use to store my games, and I relocated all my games to the new folder `E:/Games`. My only Kopia repository is stored in `F:/Kopia`, inside this repository I have created a snapshot that takes data from `D:/Games`, now what I need is for that snapshot to make copy of my files from `E:/Games` instead of `D:/Games` in the future. Is there any way I can do that? Thank you for your patience!

---

<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:** [December 31, 2024, 11:44am UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595/9 "2024-12-31T11:44:34Z")

</div>

OK I think I get it now.

Make new snapshot of `E:/Games` and use it (it will use data from other snapshot anyway - thx to repo wide deduplication). Change policy of `D:/Games` snapshot to manual (so no more automatic snapshots are taken).

---

<div class="post-metadata">

**Author:** ![Unengaged3932](https://avatars.discourse-cdn.com/v4/letter/u/91b2a8/32.png) [@Unengaged3932](https://kopia.discourse.group/u/Unengaged3932)\
**Post date:** [December 31, 2024, 11:50am UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595/10 "2024-12-31T11:50:08Z")

</div>

So that would result in 2 snapshots in my repository if I understand you correctly? Is there any way I can merge the old snapshot with the new snapshot (as they are from exactly a same source `Games`) ?

---

<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:** [December 31, 2024, 1:18pm UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595/11 "2024-12-31T13:18:24Z")

</div>

No need to merge them. New snapshot will inherit old data anyway.

---

<div class="post-metadata">

**Author:** ![Unengaged3932](https://avatars.discourse-cdn.com/v4/letter/u/91b2a8/32.png) [@Unengaged3932](https://kopia.discourse.group/u/Unengaged3932)\
**Post date:** [December 31, 2024, 1:57pm UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595/12 "2024-12-31T13:57:52Z")

</div>

alright, thank you, I will try that

---

<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:** [December 31, 2024, 2:14pm UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595/13 "2024-12-31T14:14:14Z")

</div>

First backup will take longer as kopia will have to scan all files to make sure they are already in your repo. But repo size won’t increase much. Only some metadata.

---

<div class="post-metadata">

**Author:** ![Unengaged3932](https://avatars.discourse-cdn.com/v4/letter/u/91b2a8/32.png) [@Unengaged3932](https://kopia.discourse.group/u/Unengaged3932)\
**Post date:** [January 1, 2025, 12:54am UTC](https://kopia.discourse.group/t/move-snapshot-to-a-different-location/3595/14 "2025-01-01T00:54:05Z")

</div>

Oh that’s good to know!
