Skip to content

xdevs23/backuptools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backup tools for Android devices

Copyright (C) 2016 Simao Gomes Viana

Licensed under the Creative Commons Attribution-ShareAlike 4.0 International Public License (CC BY-SA 4.0)

Read the license on https://creativecommons.org/licenses/by-sa/4.0/legalcode or a short summary on https://creativecommons.org/licenses/by-sa/4.0/


These backup tools aim to be a all-in-one collection for android-powered devices.
Note: This is not finished yet.

But this does not just contain backup tools, it also has a full-featured bash framework and tools which you can easily use to create your own bash scripts.
They are easy to use and very automated.
A great example are the way reflectors and commands work.
You don't need to worry about absolute paths and stuff like that.
Just create the file, give it an ID and a name, and put it in the reflectors folder. Now you can call your reflector file from anywhere just using its ID or name:

run super_example_cmd "SuperArgument"

You also can very easily associate a command to it. In that way you can very quickly organize your commands in different files. Inside a reflector:

reflectorName "Super example command"
reflectorId   "super_example_cmd"

associateCmd "superexample"
cmdHelpText  "This is an example command."

function reflect() {
  echo "Hello from the super example!"
  echo "You have passed the argument $1 to me."
}

As you can see, you can specify a name and an ID. An ID is always required, otherwise the reflector can not be called.
associateCmd associates the given command with your reflector.
cmdHelpText associates the given help text with your command. In that way you don't have to manually write and maintain a separate help text for your commands.
Just write the help text for your command into the reflector and you are ready to go.

And by the way: this is just bash!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published