# Wallet Restoration

The method of restoring a Core wallet.dat file is essentially the reverse of manually backing it up. Default locations for each Operating System can be found below.

## Windows <a href="#windows" id="windows"></a>

By default, the XDN data directory will be created as C:\Users\\(your username)\AppData\roaming\xdn\\

{% hint style="success" %}
**TIP:** Windows hides the AppData folder by default when using the graphical file explorer. In order to get inside the AppData folder, you can either type "%AppData%" into the search bar or check the box for "Hidden items" under the View menu to show hidden files in the file explorer window and navigate your way there.
{% endhint %}

To restore a backed up wallet.dat file, simply copy it into the following location:

C:\Users\\(your username)\AppData\roaming\xdn\wallets\wallet.dat

or

C:\Users\\(your username)\AppData\roaming\xdn\wallet.dat

{% hint style="info" %}
**NOTE:** If a "wallets" directory exists, the software will use it as the default wallet directory. If it does not exist, then the root directory will be used.
{% endhint %}

## MacOS <a href="#macos" id="macos"></a>

Be default, the XDN data directory will be created as \~/Library/Application Support/xdn/

{% hint style="success" %}
**TIP:** MacOS hides the Application Support folder by default. 1. On the top bar, left side of your screen click on "Go", then click on "Go to Folder". 2. Type or copy-paste: \~/Library/Application Support/xdn/
{% endhint %}

To restore a backed up wallet.dat file, simply copy it into the following location:

\~/Library/Application Support/xdn/wallets/wallet.dat

or

\~/Library/Application Support/xdn/wallet.dat

{% hint style="info" %}
**NOTE:** If a "wallets" directory exists, the software will use it as the default wallet directory. If it does not exist, then the root directory will be used.
{% endhint %}

## Linux <a href="#linux" id="linux"></a>

By default, the XDN data directory will be created as \~/.xdn/

To restore a backed up wallet.dat file, simply copy it into the following location:

\~/.xdn/wallets/wallet.dat

or

\~/.xdn/wallet.dat

{% hint style="info" %}
**NOTE:** If a "wallets" directory exists, the software will use it as the default wallet directory. If it does not exist, then the root directory will be used.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.digitalnote.org/wallet-functionality/qt-wallet/backup-and-security/wallet-restoration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
