# Upgrading from 12.0.1 to 22.2.3!

**URL:** <https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463>\
**Category:** ℹ️ Support\
**Tags:** update\_problems\
**Created:** [December 2, 2021, 8:23pm UTC](https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463 "2021-12-02T20:23:30Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdiehl](https://help.nextcloud.com/letter_avatar/mdiehl/32/6_22734026db12803ebb3e059622ac3534.png) [@mdiehl](https://help.nextcloud.com/u/mdiehl)\
**Post date:** [December 2, 2021, 8:23pm UTC](https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463/1 "2021-12-02T20:23:31Z")

</div>

Hi all,

I’ve been using nextcloud for some time and it’s time to upgrade to the latest version.

I’m currently running 12.0.1 and would like to upgrade to 22.2.3. The documentation indicates that I have to iterate through all major releases from 13 to 22! (ouch!)

I attempted to do a web-based update to 13.0.1, but nothing seemed to happen.

Other documents made mention of a nc-autoupdate-nc utility that will do the update for me, but I can’t find that tool.

So, it sounds like I have to:

- Make backup
- Download nextcloud into new directory
- Repoint Apache to new installation
- Restart Apache
- Login
- Some as-yet unknown incantation
- Rinse and repeat until I get to version 22.x

Is there a shorter path? Are there any gotcha’s I need to be aware of?

Thanks in advance,

Mike.

---

<div class="post-metadata">

**Author:** ![Sanook](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sanook/32/13847_2.png) [@Sanook](https://help.nextcloud.com/u/Sanook)\
**Post date:** [December 2, 2021, 8:29pm UTC](https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463/2 "2021-12-02T20:29:07Z")

</div>

> [@mdiehl](#):
>
> Is there a shorter path?

I would do a fresh install and import the data.

---

<div class="post-metadata">

**Author:** ![enoch85](https://help.nextcloud.com/user_avatar/help.nextcloud.com/enoch85/32/49403_2.png) [@enoch85](https://help.nextcloud.com/u/enoch85)\
**Post date:** [December 2, 2021, 9:14pm UTC](https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463/3 "2021-12-02T21:14:54Z")

</div>

> [@mdiehl](#):
>
> The documentation indicates that I have to iterate through all major releases from 13 to 22! (ouch!)

Yup, and you have to upgrade PHP in between as well.

It’s a looong process.

An easy way forward is to use the built in updater. There are services as well, if you like to have it done by professionals:

[https://shop.hanssonit.se/product/upgrade-between-major-owncloud-nextcloud-versions/](https://shop.hanssonit.se/product/upgrade-between-major-owncloud-nextcloud-versions/)

> **[Upgrade PHP version including dependencies](https://shop.hanssonit.se/product/upgrade-php-version-including-dependencies/)**
>
> Please see description below regarding this product

---

<div class="post-metadata">

**Author:** ![mdiehl](https://help.nextcloud.com/letter_avatar/mdiehl/32/6_22734026db12803ebb3e059622ac3534.png) [@mdiehl](https://help.nextcloud.com/u/mdiehl)\
**Post date:** [December 13, 2021, 8:41pm UTC](https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463/4 "2021-12-13T20:41:11Z")

</div>

Part of the reason I want to upgrade, aside from running an ancient version that lacks some of the newer features, is that I am hoping to move to a new and also upgraded machine. So the php version should be ok.

Is there a guide as to how to export and re-import all of my data? I have a lot of stuff in my calendar, contacts and files…

Thanks again,

Mike

---

<div class="post-metadata">

**Author:** ![sky](https://help.nextcloud.com/letter_avatar/sky/32/6_22734026db12803ebb3e059622ac3534.png) [@sky](https://help.nextcloud.com/u/sky)\
**Post date:** [December 14, 2021, 5:17am UTC](https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463/5 "2021-12-14T05:17:58Z")

</div>

You can take a look at @riegerCLOUD Webside and the provided script an documentation on backup/restore

> **[Nextcloud Sicher- & Wiederherstellung - Carsten Rieger IT-Services](https://www.c-rieger.de/nextcloud-sicherung-und-wiederherstellung/)**
>
> EIn neuerer Guide ist verfügbar: Nextcloud Backup (Borg) mit De-Duplizierung Mit dem skizzierten Vorgehen wird der Nextcloud Server regelmäßig gesichert und rotiert. Die Sicherungen enthalten u.a. – das Web – und Datenverzeichnis: /var/www/nextcloud...

---

<div class="post-metadata">

**Author:** ![Bernie\_O](https://help.nextcloud.com/user_avatar/help.nextcloud.com/bernie_o/32/40181_2.png) [@Bernie\_O](https://help.nextcloud.com/u/Bernie_O)\
**Post date:** [December 14, 2021, 11:54am UTC](https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463/6 "2021-12-14T11:54:16Z")

</div>

> [@mdiehl](#):
>
> I have a lot of stuff in my calendar, contacts

Reimporting contacts and calendars might be complicated if you only have a database backup. So you might want to have a look at _[calcardbackup](https://help.nextcloud.com/t/calcardbackup-bash-script-to-backup-nextcloud-calendars-and-addressbooks-as-ics-vcf-files/11978)_ for exporting contacts and calendars.

---

<div class="post-metadata">

**Author:** ![mdiehl](https://help.nextcloud.com/letter_avatar/mdiehl/32/6_22734026db12803ebb3e059622ac3534.png) [@mdiehl](https://help.nextcloud.com/u/mdiehl)\
**Post date:** [January 18, 2022, 12:41am UTC](https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463/7 "2022-01-18T00:41:39Z")

</div>

So, it looks like I can backup my contacts and calendar. But if I simply copy my files from the old server to the new one, what will I have to do to get nextcloud to recognize my files?

Mike.

---

<div class="post-metadata">

**Author:** ![Bernie\_O](https://help.nextcloud.com/user_avatar/help.nextcloud.com/bernie_o/32/40181_2.png) [@Bernie\_O](https://help.nextcloud.com/u/Bernie_O)\
**Post date:** [January 18, 2022, 5:41am UTC](https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463/8 "2022-01-18T05:41:28Z")

</div>

> [@mdiehl](#):
>
> But if I simply copy my files from the old server to the new one, what will I have to do to get nextcloud to recognize my files?

You need to rescan the filesystem:  
[https://docs.nextcloud.com/server/22/admin\_manual/configuration\_server/occ\_command.html#scan](https://docs.nextcloud.com/server/22/admin_manual/configuration_server/occ_command.html#scan)

---

<div class="post-metadata">

**Author:** ![mdiehl](https://help.nextcloud.com/letter_avatar/mdiehl/32/6_22734026db12803ebb3e059622ac3534.png) [@mdiehl](https://help.nextcloud.com/u/mdiehl)\
**Post date:** [February 7, 2022, 5:26pm UTC](https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463/9 "2022-02-07T17:26:39Z")

</div>

Thank you! It looks like I’ll be able to do all of this over a weekend.

Thanks again,

Mike

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_22734026db12803ebb3e059622ac3534.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [February 8, 2022, 8:39am UTC](https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463/10 "2022-02-08T08:39:51Z")

</div>

> [@Bernie\_O](#):
>
> You need to rescan the filesystem:

But it will need to resync all files between client and server. Even if the files are there on both sides…

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [February 8, 2022, 9:02am UTC](https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463/11 "2022-02-08T09:02:55Z")

</div>

> [@tflidd](#):
>
> But it will need to resync all files between client and server. Even if the files are there on both sides…

Yes. And if someone use the desktop client it is sometimes better to use the nextcloud client for moving to another (newer) nextcloud server.

If you have only one user perhaps watch this [video](https://www.youtube.com/watch?v=9rAVnHWOM60).

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 2:45pm UTC](https://help.nextcloud.com/t/upgrading-from-12-0-1-to-22-2-3/128463/12 "2024-12-14T14:45:17Z")

</div>


