Can update backup path be customized?

When I update NextCloud it creates a backup under data/updater-oc* such as data/updater-ocr0bl5qlxj3/ for example. Can it be customized to be outside of data?

I have already moved data itself elsewhere with command ln -s /media/data/nextcloud/data/ /var/www/nextcloud/ so I can no longer move updater-ocr0bl5qlxj3 because it would be symlink in already symlinked directory. Is there way to redirect it to /tmp or somewhere?

Also will NC try to delete them eventually or will they stay there forever?

They will stay until you delete them manually.

instead of symlinking you can tell nextcloud that the datastore is in a different place. And then symlink the updater folder. You can empty it as soon as you are comfortable with you update to keep it clean.

Yes. Use the updatedirectory config parameter.

Also will NC try to delete them eventually or will they stay there forever?

The most recent three backups are retained. Older ones are automatically removed.

1 Like

Are only the last 3 retained? I have something to read up on in that case. I think i have removed many more from customers setups historically.

Yes. At least that’s the intention.

There have been some reports about things sticking around longer. Some additional error checking and logging was added (for upcoming v32) in the background job that handles the updater cleanup, to hopefully make it easier to catch whatever is going on.

1 Like

Tnx, will look into this. If that other location is another hard disk, is there a difference for NC between linking it and changing conf directly? That /var/www is my system partition and /media/data is other hard disk with different filesystem.

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