feat: docker compose backup
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package backup
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var (
|
||||
cfgFile string
|
||||
dryRun bool
|
||||
)
|
||||
|
||||
// Version is set at build time via -ldflags.
|
||||
var Version = "dev"
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "docker-compose-backup",
|
||||
Short: "Backup Docker Compose projects with minimal downtime",
|
||||
Long: `docker-compose-backup stops Docker Compose projects, copies their directories, restarts them immediately, and then asynchronously compresses the backups.`,
|
||||
Version: Version,
|
||||
}
|
||||
Reference in New Issue
Block a user