How to migrate from Windows to Unix or vice verse?

[!info]
Migrating between file systems with different path separators (/ and \) is currently unsupported by the Stash application.

For advanced users, it’s possible to manually migrate the folders table using SQL.

[!danger]
Use at your own risk. If you do this, make sure to backup your database before starting.

The following example query would replace \ with / and D:/ with /mnt/ in a typical move from Windows to Linux.

Example SQL query
UPDATE folders SET path = REPLACE(path, '\', '/');
UPDATE folders SET path = REPLACE(path, 'D:/', '/mnt/');
1 Like