# Export data from bare metal and import to a snap install?

**URL:** <https://help.nextcloud.com/t/export-data-from-bare-metal-and-import-to-a-snap-install/241894>\
**Category:** ℹ️ Support\
**Tags:** snap\
**Created:** [March 16, 2026, 8:25pm UTC](https://help.nextcloud.com/t/export-data-from-bare-metal-and-import-to-a-snap-install/241894 "2026-03-16T20:25:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FredP](https://help.nextcloud.com/letter_avatar/fredp/32/6_449c533f586939b6e5f246632a46421f.png) [@FredP](https://help.nextcloud.com/u/FredP)\
**Post date:** [March 16, 2026, 8:25pm UTC](https://help.nextcloud.com/t/export-data-from-bare-metal-and-import-to-a-snap-install/241894/1 "2026-03-16T20:25:36Z")

</div>

> **Support intro**
>
> ## Sorry to hear you’re facing problems. 🙁
> 
> _The community help forum ([help.nextcloud.com](http://help.nextcloud.com)) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are **volunteering their time to help you.** _
> 
> **If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via [portal.nextcloud.com](http://portal.nextcloud.com) where Nextcloud engineers can help ensure your business keeps running smoothly.**
> 
> ## Getting help
> 
> In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.
> 
> **Before clicking submit** : Please check if your query is already addressed via the following resources:
> 
> - [Official documentation](https://docs.nextcloud.com) (searchable and regularly updated)
> - [How to topics and FAQs](https://help.nextcloud.com/c/how-to-faqs/9)
> - [Forum search](https://help.nextcloud.com/search)
> 
> (Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. ❤

## The Basics

- Nextcloud Server version _(e.g., 29.x.x)_:
  - `Current release `

- Operating system and version _(e.g., Ubuntu 24.04)_:
  - `Ubuntu 24`

- Web server and version _(e.g, Apache 2.4.25)_:
  - `Apache`

- Reverse proxy and version \_(e.g. nginx 1.27.2)
  - `None`

- PHP version _(e.g, 8.3)_:
  - `8.3`

- Is this the first time you’ve seen this error? (Yes / No):
  - `replace me`

- When did this problem seem to first start?
  - `replace me`

- Installation method _(e.g. AlO, NCP, Bare Metal/Archive, etc.)_
  - `replace me`

- Are you using CloudfIare, mod\_security, or similar? _(Yes / No)_
  - `No`

### Summary of the issue you are facing:

[…]I have a bare metal install. I’m wondering if I export my data, can I import it into a snap install on another machine installed with sudo snap install nextcloud?

### Steps to replicate it (hint: details matter!):

1. 
2. 
3. 

### Log entries

#### Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the _Copy raw_ option from _Administration settings-\>Logging_ screen or from your `nextcloud.log` located in your data directory). Feel free to use a pastebin/gist service if necessary.

```auto
PASTE HERE

```

#### Web Browser

If the problem is related to the Web interface, open your browser inspector _Console_ and _Network_ tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

```auto
PASTE

```

#### Web server / Reverse Proxy

The output of your Apache/nginx/system log in `/var/log/ ____ `:

```auto
PASTE HERE

```

### Configuration

#### Nextcloud

The output of `occ config:list system` or similar is best, but, if not possible, the contents of your `config.php` file from `/path/to/nextcloud` is fine (make sure to remove any identifiable information!):

```auto
PASTE HERE

```

#### Apps

The output of `occ app:list` (if possible).

### Tips for increasing the likelihood of a response

- Use the `preformatted text` formatting option in the editor for all log entries and configuration output.
- If screenshots are useful, feel free to include them.
  - If possible, also include key error output in text form so it can be searched for.

- Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

---

<div class="post-metadata">

**Author:** ![scubamuc](https://help.nextcloud.com/user_avatar/help.nextcloud.com/scubamuc/32/63165_2.png) [@scubamuc](https://help.nextcloud.com/u/scubamuc)\
**Post date:** [March 16, 2026, 9:14pm UTC](https://help.nextcloud.com/t/export-data-from-bare-metal-and-import-to-a-snap-install/241894/2 "2026-03-16T21:14:51Z")

</div>

> [@FredP](#):
>
> I have a bare metal install. I’m wondering if I export my data, can I import it into a snap install on another machine installed with sudo snap install nextcloud?

short answer: “no”

raw data could be copied:

- add users in snap and then copy raw data from bare metal to snap data directory →   
`/var/snap/nextcloud/common/nextcloud/data/$USER`
  - then scan all files `sudo nextcloud.occ files:scan --all`

but database will be very difficult and not recommended  
no guarantees though, never tried this before… and it probably won’t work!

- export mysql database from bare metal install and import into snap →   
`sudo nextcloud.import -b` but you’d lose all path references!  
you will have to rescan:
  - `sudo nextcloud.occ files:repair-tree`
  - `sudo nextcloud.occ files:scan --all`
  - `sudo nextcloud.occ files:scan-app-data`

> [@Transitioning from plain installation to containerized (eg snap)](https://help.nextcloud.com/t/transitioning-from-plain-installation-to-containerized-eg-snap/229414):
>
> I am running Nextcloud (currently 30.0) on an Ubuntu 24.04 LTS home server, for personal purposes (family calendars, documents, photos, etc). I installed it years ago, and kept upgrading it, it is working fine, but every once in a while I have to manually intervene on upgrades. I am wondering if it would make sense to run in a container, which would allow more robust updates, possibly unattended, which container I should choose (I am leaning towards snap, as I am on Ubuntu), how one would mig…

recommend running both instances in parallel and then [rclone](https://rclone.org/) the data from one instance to the other.

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [March 24, 2026, 9:15pm UTC](https://help.nextcloud.com/t/export-data-from-bare-metal-and-import-to-a-snap-install/241894/3 "2026-03-24T21:15:20Z")

</div>

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
