/vbu.ml

Small utility to create versioned backups of files in a directory that match a glob.

Primary LanguageOCaml

vbu

esy CI

Small utility to create versioned backups of files in a directory that match a glob. I originally wrote it to backup video game saves to Google Drive that didn't have cloud save support.

Start by setting the location you want your backups to be stored in:

vbu config --path /path/to/network/drive

Then add a path to be backed up with the given name (called a group):

vbu add dark_souls_3 --path /path/to/ds3/saves

Now you can run either

vbu backup dark_souls_3

to back up your Dark Souls 3 saves or

vbu backup

to back up files for all the groups you've added.

You can keep it running, backing up your files at the interval specified by the frequency in your config by running

vbu backup --loop

If you want to rename dark_souls_3 to ds3 for brevity, you can run

vbu edit dark_souls_3 --name ds3

To see all commands available, run

vbu --help

and to see how to use various commands (in this example, the info command), run

vbu info --help