mtkennerly / ludusavi

Backup tool for PC game saves

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redirect only works on "Back up" and "Bidirectional"

Originalimoc opened this issue · comments

Ludusavi version

v0.21.0

Operating system

Windows

Installation method

Standalone

Description

If you choose "Restore" neither mode would recognize the redirection.

Logs

No response

Hi! Can you share your configured redirects and give an example of a game where it's not working? It works fine on my end.

For example, I have this game (restore mode):

image

Then I configure a redirect:

image

When I re-scan the game in restore mode, it shows the redirected paths:

image

When I restore it, the folder and files are created at the new location:

image

Huh.....

My understanding is first redirect input is what's path actually on disk, second input is what's on the mapping.yaml, then configured accordingly and it works in Bidrectional mode I'm using because I sync accross 2 Win + 1 Linux.

This understanding to me is natural but seems, wrong?

For a restore redirect:

  • The first input is where it was originally backed up from
  • The second input is where you'd like it to be restored to

There are some more notes and examples here: https://github.com/mtkennerly/ludusavi#redirects

Then how can make sense of bidirectional when restore and backup both field mean different thing?

  • In backup mode, a bidirectional redirect behaves like a backup redirect, with the same field order.
  • In restore mode, a bidirectional redirect behaves like a restore redirect, with the fields reversed.

In other words:

  • Backup redirect: When we back up a file from [source], we back it up as if it were from [target] instead
  • Restore redirect: When we restore a file that was backed up from [source], we restore it to [target] instead
  • Bidirectional redirect:
    • When we back up a file from [source], we back it up as if it were from [target] instead
    • When we restore a file that was backed up from [target], we restore it to [source] instead

([source] is the first field, and [target] is the second field)