Image paths #1907

Closed
opened 2026-02-05 02:10:39 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @sharma-akshay on GitHub (Oct 19, 2020).

Hi,

I had setup Wiki on one server and now I copied the whole Wiki directory and database on another server. The Wiki server is working properly, but for the images it is still referring to old server path.

Do I need to change some config file or update any table. Please let me know. Also is there any other better way to migrate Wiki data from one server to another.

Thanks,
Akshay Sharma

Originally created by @sharma-akshay on GitHub (Oct 19, 2020). Hi, I had setup Wiki on one server and now I copied the whole Wiki directory and database on another server. The Wiki server is working properly, but for the images it is still referring to old server path. Do I need to change some config file or update any table. Please let me know. Also is there any other better way to migrate Wiki data from one server to another. Thanks, Akshay Sharma
Author
Owner

@cdrfun commented on GitHub (Oct 19, 2020):

You can update the image urls with
php artisan bookstack:update-url <oldUrl> <newUrl>

The command is documented here: https://www.bookstackapp.com/docs/admin/commands/

@cdrfun commented on GitHub (Oct 19, 2020): You can update the image urls with `php artisan bookstack:update-url <oldUrl> <newUrl>` The command is documented here: https://www.bookstackapp.com/docs/admin/commands/
Author
Owner

@sharma-akshay commented on GitHub (Oct 19, 2020):

You can update the image urls with
php artisan bookstack:update-url <oldUrl> <newUrl>

The command is documented here: https://www.bookstackapp.com/docs/admin/commands/

Thanks for the quick response.

@sharma-akshay commented on GitHub (Oct 19, 2020): > You can update the image urls with > `php artisan bookstack:update-url <oldUrl> <newUrl>` > > The command is documented here: https://www.bookstackapp.com/docs/admin/commands/ Thanks for the quick response.
Author
Owner

@sharma-akshay commented on GitHub (Oct 20, 2020):

php artisan bookstack:update-url

Is there any other clean way of migrating Wiki server from one server to another.

@sharma-akshay commented on GitHub (Oct 20, 2020): > php artisan bookstack:update-url <oldUrl> <newUrl> Is there any other clean way of migrating Wiki server from one server to another.
Author
Owner

@cdrfun commented on GitHub (Oct 20, 2020):

Idk what you are aiming for, but there is no "all in one" process if that's what you mean. You'll have to manually move the database, the config and upload files and apply the url command, if the url has changed. The process is dependent on how you host bookstack.

@cdrfun commented on GitHub (Oct 20, 2020): Idk what you are aiming for, but there is no "all in one" process if that's what you mean. You'll have to manually move the database, the config and upload files and apply the url command, if the url has changed. The process is dependent on how you host bookstack.
Author
Owner

@ssddanbrown commented on GitHub (Nov 7, 2020):

Thanks for providing the quick response here @cdrfun. Will therefore close this off since it's been answered.

@ssddanbrown commented on GitHub (Nov 7, 2020): Thanks for providing the quick response here @cdrfun. Will therefore close this off since it's been answered.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1907