asimov is a basic FTP Backup tool. Using asimov different commands are available
- help the asimov help screen
- version the version of the backup tool asimov
- del delete a robot from the list of available robots
- add add a robot to the list of robots
- 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.
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 😉
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.
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 😉
- all the all command or simply * backup all files of the robot available in the standard ftp directory
- app download all app data. This includes "*.tp" files, the "numreg.vr" and the "posreg.vr" file.
- bin backup all binary files. This includes "*.zip","*.sv","*.tp" and "*.vr" files
- vison backup all vision files. This includes "*.vd","*.vda" and "*.zip" files
To develop this project you are going to need
- go-homedir
go get github.com/mitchellh/go-homedir
- cobra
go get github.com/spf13/cobra
- viper
go get github.com/spf13/viper
- yaml.v2
go get gopkg.in/yaml.v2
feel free to make changes :nerd: