# Recover old Files

**URL:** <https://forum.rasa.com/t/recover-old-files/50173>\
**Category:** Rasa Open Source\
**Created:** [December 20, 2021, 2:39pm UTC](https://forum.rasa.com/t/recover-old-files/50173 "2021-12-20T14:39:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anvesh](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Anvesh](https://forum.rasa.com/u/Anvesh)\
**Post date:** [December 20, 2021, 2:39pm UTC](https://forum.rasa.com/t/recover-old-files/50173/1 "2021-12-20T14:39:46Z")

</div>

I was trying to create to use rasa in jupyter notebook and by mistake I runned the following command

```auto
from rasa.cli.scaffold import create_initial_project
import os

project = "."
create_initial_project(project)

# move into project directory and show files
os.chdir(project)
print(os.listdir("."))

```

This replaced my complete code base by initial files of rasa? Can anyone help me to get the old nlu,action,stores files this completed erupted my project

Any help would matter

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [December 20, 2021, 6:18pm UTC](https://forum.rasa.com/t/recover-old-files/50173/2 "2021-12-20T18:18:33Z")

</div>

> [@Anvesh](#):
>
> `chdir`

@Anvesh I guess while using chdir you just moved the files from the current working directory, please inspect the environment or jupyter notebook your files should be there only. or you can run the `rasa init` to create the initial files?

---

<div class="post-metadata">

**Author:** ![Anvesh](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Anvesh](https://forum.rasa.com/u/Anvesh)\
**Post date:** [December 21, 2021, 4:54am UTC](https://forum.rasa.com/t/recover-old-files/50173/3 "2021-12-21T04:54:23Z")

</div>

I checked my files it is overwritten by initial files of rasa I think that is because I executed the below commands, only old model.tar file is untouched , everything else is gone

```auto
config = "config.yml"
training_files = "data/"
domain = "domain.yml"
output = "models/"
print(config, training_files, domain, output)
import rasa

model_path = rasa.train(domain, config, [training_files], output)

print(model_path)

```

Is there any way to get actions,nlu,domain,config from model.tar file?

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [December 21, 2021, 12:15pm UTC](https://forum.rasa.com/t/recover-old-files/50173/4 "2021-12-21T12:15:25Z")

</div>

@Anvesh its you complete working project or just the rasa default files?

---

<div class="post-metadata">

**Author:** ![Anvesh](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Anvesh](https://forum.rasa.com/u/Anvesh)\
**Post date:** [December 22, 2021, 12:27am UTC](https://forum.rasa.com/t/recover-old-files/50173/5 "2021-12-22T00:27:44Z")

</div>

only all the rasa default files are overwritten

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [December 22, 2021, 10:59am UTC](https://forum.rasa.com/t/recover-old-files/50173/6 "2021-12-22T10:59:15Z")

</div>

@Anvesh Right so don’t worry, try create the new project and install `rasa init` and you will get the default files and copy from that folder and paste in original folder or you can even install in your current project aswell.
