Asimov

command module
v0.0.0-...-75717be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2018 License: MIT Imports: 2 Imported by: 0

README

ASIMOV - Basic FANUC Robot Backup

asimov is a basic FTP Backup tool. Using asimov different commands are available

  1. help the asimov help screen
  2. version the version of the backup tool asimov
  3. del delete a robot from the list of available robots
  4. add add a robot to the list of robots
  5. backup this command start the backup process of all robots in the configuration list

The configuration list is set to $HOME/.config/asimov/asimov.yaml. If you like to use a different configuration file please use the --config flag. The config flag is available in each subcommand

Usage:
  asimov [command]

Available Commands:
  add         Add a Robot to the Robot List
  backup      Asimov start backup. There are different possibilities to make the backup
  del         Remove a Robot from the Robot List
  help        Help about any command
  version     print version number of Asimov

Flags:
      --config string   config file (default $HOME/.config/asimov/asimov.yaml)
  -h, --help            help for asimov
  -d, --target string   Path to the backup Directory (default "Backup Path")

Use "asimov [command] --help" for more information about a command.

add a robot in asimov

To add a robot to the configuration list us the asimov add [name] [ip-address] [flags] command. It is assumed that the port 21 is default. This can not be changed for the moment. The ip-addess is going to be checkt, if the given ip-address is valid because the user might have a writing mistake. The order of attribuis is important and can not be changed.
Each name of a robot is unique. So if you have a name given twice the ip-address of the first is set with the ip-address of the second robot. The check for the ip-address is comming 😉

delete a robot in asimov

to remove a robot from the list of robots in the configuration file use asimov del [name] [flags]. If the robot name is in the list of robots, this command deletets the robot from the list.

backup you robots using asimov

To give you, the user a chose of your will, asimov provides different aliases for backup

  • asimov backup [command]
  • asimov bkg [command]
  • asimov back [command]
  • asimov bak [command]

does all the same. The different commands for the backup are working totally different 😉

  1. all the all command or simply * backup all files of the robot available in the standard ftp directory
  2. app download all app data. This includes "*.tp" files, the "numreg.vr" and the "posreg.vr" file.
  3. bin backup all binary files. This includes "*.zip","*.sv","*.tp" and "*.vr" files
  4. vison backup all vision files. This includes "*.vd","*.vda" and "*.zip" files

Development

To develop this project you are going to need

  1. go-homedir go get github.com/mitchellh/go-homedir
  2. cobra go get github.com/spf13/cobra
  3. viper go get github.com/spf13/viper
  4. yaml.v2 go get gopkg.in/yaml.v2

feel free to make changes :nerd:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
robot

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL