08-09-2021, 10:23 PM
(This post was last modified: 08-09-2021, 10:24 PM by FullPrimal.)
(08-09-2021, 10:00 PM)turtleship_ Wrote: I assume a snap spot is just a copy of the saves and/or settings, not anything like a save state?
Also is this like the other ludusavi extension, but it saves online?
Think of a snapshot as a point in time copy of your game save files. This allows you to restore your save files to any previous recorded state.
For example, let's look at my backups for Death's Door:
PS C:\Users\marcus\projects\playnite-plugin-ludusavi-restic\LudusaviRestic> restic snapshots --compact -r rclone:restic:/gamesaves --tag "Death's Door"
repository c495813c opened successfully, password is correct
ID Time Host Tags
-----------------------------------------------------------
44a02603 2021-08-07 12:52:05 GAMING-DESKTOP Death's Door
91deb969 2021-08-07 13:00:26 GAMING-DESKTOP Death's Door
0f055a90 2021-08-09 10:57:16 GAMING-DESKTOP Death's Door
d8ce2c32 2021-08-09 11:57:58 GAMING-DESKTOP Death's Door
2b5ebb33 2021-08-09 12:00:11 GAMING-DESKTOP Death's Door
-----------------------------------------------------------
5 snapshots
As you can see, I have 5 recorded backups/snapshots for my game saves in Death's Door. Let's say the next time I start the game my save gets corrupted somehow. I could then restore my saves from "2021-08-07 13:00:26" and resume playing from there.
The other ludusavi extension only allows for a single copy of a game's files at a time out of the box. The previous backup will always be overwritten by the next one. In the above example of corrupt saves for Death's Door, the backup behavior of the other ludusavi extension would result in the backup being overwritten by the corrupted saves.
This extension leverages "restic" to do the backup heavy lifting. Restic can write to lots of different backends (local disk, google drive, onedrive, etc). The list of files for a given game is still sourced from "ludusavi" and that list of files is passed to "restic" to backup. This extension more or less connects the "restic" and "ludusavi" tools.
NOTE: I've had no corrupted save issues with Death's Door, just simply using it as an example.