Documentation
¶
Overview ¶
Package backup keeps a copy of a file the loop is about to change, and of the plugin stores beside a copy of the store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func File ¶
File writes raw to <path>.loop-<stamp>.bak, or the first free name after it, and returns the name.
func PluginStores ¶ added in v0.3.0
PluginStores copies the store of each plugin under <stateDir>/plugins into PluginsOf(backup). The plugins must not be running: the copy is file by file.
func PluginsOf ¶ added in v0.3.0
PluginsOf is the directory beside the store backup at backup that holds the plugin stores taken with it.
func RestorePluginStores ¶ added in v0.3.0
RestorePluginStores puts back the plugin stores taken with the store backup at backup, removing every store under <stateDir>/plugins that the backup did not hold: a plugin's store follows the core store it sits beside. The plugins must not be running.
Types ¶
This section is empty.