feat: docker compose backup

This commit is contained in:
2026-07-04 17:20:28 +08:00
commit 5c8944fd58
27 changed files with 2070 additions and 0 deletions
+20
View File
@@ -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,
}