OpenBagTwo / gsb

A tool for managing incremental backups of your save states using Git!
https://openbagtwo.github.io/gsb/
GNU General Public License v3.0
0 stars 0 forks source link

Manual Backup Creation #3

Closed OpenBagTwo closed 1 year ago

OpenBagTwo commented 1 year ago

GIVEN Alex already has gsb installed on her system and is using it to track a save state

WHEN she opens a terminal, navigates to the directory where her save game lives and runs the command:

gsb backup

THEN gsb will create an incremental backup of the registered save file (see #1), including any new files added or removed to parent directories

AND ALSO

WHEN she runs the command:

gsb backup --tag Checkpoint

THEN gsb will create the incremental backup in a way that annotates the backup the message "Checkpoint"

SO that she doesn't have to run the git commands herself

Notes

Under the hood, this is:

$ while read pattern do; git add $pattern; done < .gsb_manifest
$ git commit -m <message>

where <message> is "Manual Commit" for the first case and "Checkpoint" for the second

but from there in the second case, I could see creating a tag with the current date[time] and "Checkpoint" as the message... or I could see squashing all the commits since the last "tagged" commit and then rewording the combined commit with the tag message.

That second version mirrors my current workflow, but I'm not sure how aggressively I want to push that since it's so hard to undo.