# Not being able to login after doing a backup restore

**URL:** <https://vaultwarden.discourse.group/t/not-being-able-to-login-after-doing-a-backup-restore/4376>\
**Category:** Help\
**Created:** [January 30, 2025, 8:36pm UTC](https://vaultwarden.discourse.group/t/not-being-able-to-login-after-doing-a-backup-restore/4376 "2025-01-30T20:36:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjavero](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jjavero](https://vaultwarden.discourse.group/u/jjavero)\
**Post date:** [January 30, 2025, 8:36pm UTC](https://vaultwarden.discourse.group/t/not-being-able-to-login-after-doing-a-backup-restore/4376/1 "2025-01-30T20:36:43Z")

</div>

Hello! I’m trying to make a copy of my Vaultwarden instance (`vaultwarden/server:latest`)

- I have a Vaultwarden instance running with PostgreSQL.
- I did a dump of my PostgreSQL database.
- Created a new container with a new Vaultwarden instance and a new PostgreSQL database
- I restored the dump on the new PostgreSQL instance
- I went to the folder where the Vaultwarden files of my new container are stored and I deleted everything there.
- I went to the folder where the Vaultwarden files are located
- I copied the files to the Vaultwarden files location of my new container.

 ![image](https://global.discourse-cdn.com/free1/uploads/vaultwarden/original/2X/f/fa5c0d94ba7df79fcef3c673bbd61c77779c4191.png)

- Restarted the server

But when I try to login in my new instance, I get the error

```auto
{
    "error": "",
    "errorModel": {
        "message": "Username or password is incorrect. Try again",
        "object": "error"
    },
    "error_description": "",
    "exceptionMessage": null,
    "exceptionStackTrace": null,
    "innerExceptionMessage": null,
    "message": "Username or password is incorrect. Try again",
    "object": "error",
    "validationErrors": {
        "": [
            "Username or password is incorrect. Try again"
        ]
    }
}

```

I’m 100% sure that my credentials are ok. Here it says [Backing up your vault · dani-garcia/vaultwarden Wiki · GitHub](https://github.com/dani-garcia/vaultwarden/wiki/Backing-up-your-vault#restoring-backup-data) nothing else apart the dump restore and the files replacement.

Is there anything else I’m missing?

---

<div class="post-metadata">

**Author:** ![Partridge2562](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@Partridge2562](https://vaultwarden.discourse.group/u/Partridge2562)\
**Post date:** [February 1, 2025, 2:14pm UTC](https://vaultwarden.discourse.group/t/not-being-able-to-login-after-doing-a-backup-restore/4376/2 "2025-02-01T14:14:04Z")

</div>

In the Examples section it says: “You should review an example thoroughly and understand what it’s doing before using it” and the one I chose (the gitlab one) uses `tar` not `cp -r` as you did. Why re-invent the wheel…

---

<div class="post-metadata">

**Author:** ![jjavero](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jjavero](https://vaultwarden.discourse.group/u/jjavero)\
**Post date:** [February 5, 2025, 1:02pm UTC](https://vaultwarden.discourse.group/t/not-being-able-to-login-after-doing-a-backup-restore/4376/3 "2025-02-05T13:02:07Z")

</div>

Didn’t think it was any difference between using `cp -r` instead of `tar` to copy files. Anyways, I tried with `tar` and it’s now working correctly.

Thanks!
