Pause images optimization upon restore to new instance of server

I am trying to migrate my discource instance to new server, Since I am limited whit space on server I want first to

How i can pause image optimization after initial upload db and restore it.

So I can check did restore pass well and delete backup file and delete.

My backup file is about 200GB whit unchecked settings Include generated thumbnails in backups. Disabling this will make backups smaller, but requires a rebake of all posts after a restore.

So I am going to run out of disk space if my instance holds backup file and start optimizing images.

If you need more space you need more space.

But maybe you want to rsync the images and restore only database. That way you don’t have two copies of all of the uploads (and don’t have to make thumbnails again.

Thanks for trying to help.

I did try it, but I was now quite sure why my restore did not went good.

My main problem is that my old instance has stacked on PostgreSQL version 12 I did not find way to upgrade it, and try to move to new fresh instance.

Do you know is possible to restore only database to fresh install.

When I tried instance just start retuning error code 500 and I had to start all over.

What I would do is follow the Move a Discourse site to another VPS with rsync except don’t copy over the postgres files.

Then do a database-only backup and restore that. You’ll rsync over the backup as well and restore from the command line.

Is this a very old version, I guess? Did the restore appear to complete successfully?