# Mastodon restore from backup fails - Could not find 'bundler'

**URL:** https://forum.yunohost.org/t/mastodon-restore-from-backup-fails-could-not-find-bundler/42421
**Category:** Support apps
**Tags:** mastodon, english
**Created:** [June 9, 2026, 12:45pm UTC](https://forum.yunohost.org/t/mastodon-restore-from-backup-fails-could-not-find-bundler/42421 "2026-06-09T12:45:31Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![JfmbLinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jfmblinux/32/11238_2.png) [@JfmbLinux](https://forum.yunohost.org/u/JfmbLinux)
#### Post date: [June 9, 2026, 8:52pm UTC](https://forum.yunohost.org/t/mastodon-restore-from-backup-fails-could-not-find-bundler/42421/11 "2026-06-09T20:52:44Z")

</div>

To be honest, the best thing would be to do a new installation on its own.

Via SSH  
Create folder to put backups

Ex:

```auto
mkdir /var/www/backups/mastodon_backup

```

BACKUP 💾 :

```auto
cd /var/www/mastodon/live
pg_dump -U mastodon -W -F t mastodon > /var/www/backups/mastodon_backup/mastodon_backup.dump

```

RESTORE 🛠:

```auto
cd /var/www/mastodon/live
pg_restore -U mastodon -d mastodon < /var/www/backups/mastodon_backup/mastodon_backup.dump

```

Here’s another example of backup.

> [@Failed restore of Mastodon](https://forum.yunohost.org/t/failed-restore-of-mastodon/41813/23):
>
> Back up the Mastodon database and configuration files. Create a backup of the Mastodon database and configuration files BACKUP floppy_disk : mkdir /var/www/backups/mastodon\_backup cd /var/www/mastodon/live pg\_dump -U mastodon -W -F t mastodon \> /var/www/backups/mastodon\_backup/mastodon\_backup.dump The password is found in the .env.production file, on the line: nano /var/www/mastodon/live/.env.production PostgreSQL DB\_PASS=”xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” Back up the following folders: c…

Then make a new installation

---

_[View the full topic](https://forum.yunohost.org/t/mastodon-restore-from-backup-fails-could-not-find-bundler/42421)._
