@ -26,7 +26,7 @@ import (
// backupCmd represents the backup command
var backupCmd = &cobra.Command{
Use: "backup",
Short: "A brief description of your command",
Short: "Create backups for given locations",
Run: func(cmd *cobra.Command, args []string) {
config := internal.GetConfig()
{
@ -25,7 +25,7 @@ import (
// execCmd represents the exec command
var execCmd = &cobra.Command{
Use: "exec",
Short: "Execute arbitrary native restic commands for given backends",
if err := config.CheckConfig(); err != nil {
@ -22,7 +22,7 @@ import (
var installCmd = &cobra.Command{
Use: "install",
Short: "Install restic if missing",
err := bins.InstallRestic()
cobra.CheckErr(err)
var upgradeCmd = &cobra.Command{
Use: "upgrade",
Short: "Upgrade autorestic and restic",
noRestic, _ := cmd.Flags().GetBool("no-restic")
err := bins.Upgrade(!noRestic)