cgcel / obsidian-local-backup

Automatically creates a local backup of the vault.
MIT License
33 stars 1 forks source link

Feature Request: custom archiver command #33

Open hmijail opened 2 months ago

hmijail commented 2 months ago

I would like to customize the archiver I use.

(Actually I would like to make a plain copy with cp, but I imagine that many people will want slightly different archivers or options; so I guess it'd make sense to allow any arbitrary command)

So, maybe it would be possible to have an option to call a given path, with one argument as the destination directory, and another as the source/s? something like $CUSTOM_COMMAND $SOURCE $DESTINATION

In this way, anyone can write their own script and have it called by the plugin.

I guess this would also fix e.g. #29 .

hmijail commented 2 months ago

I just realized that there's a plugin that allows for periodic execution of shell scripts. With it I can easily implement my idea, so maybe my Feature Request is unnecessary.