Cinnabar Forge Jordan is a versatile tool for backing up and restoring configuration files and directories. Designed with simplicity in mind, it allows users to manage their configurations in a fast and efficient way.
- Flexible Configuration Management: Easily add, update, or remove configurations to suit your evolving needs.
- Efficient Backup and Restore: Backup individual configurations or all at once to a specified folder, ensuring your settings are safely stored and can be restored at any time.
- Interactive and Command-Line Modes: Choose between an interactive mode for guided configuration management or a command-line interface for quick and scriptable actions.
- Comprehensive List Display: View all your registered configurations with an easy-to-read table format.
- Anywhere Node.js Goes: Linux? Windows? Termux? You name it. The only thing you need is your packet manager.
- CLI-powered: Setup your favorite crontabs and CI tools to backup your configurations in a timely manner.
Install Cinnabar Forge Jordan globally using npm:
npm install -g jordan-backup
This will make the jordan
command available in your terminal.
To start using Jordan, you need to specify a working folder in two ways:
- with
folder
command. It will set the specified folder as the main one.
jordan folder <path_to_your_folder>
- with the
-f
or--folder
option. The specified folder will be used for this time only.
jordan -f <path_to_your_folder>
Before we can use other commands, we should init folder.
jordan init
It will create jordan.json
file, which declares folder as Jordan Backup's one.
To add a new configuration or update an existing one:
jordan add <configName> [path]
If path is omitted, the config will be considered 'cached' and will ignore backup
and restore
commands.
To remove an existing configuration:
jordan remove <configName>
To list all registered configurations:
jordan list
Or
jordan ls
To back up a configuration:
jordan backup <configName>
To back up all configurations:
jordan backup-all
To restore a configuration:
jordan restore <configName>
To restore all configurations:
jordan restore-all
For more specific operations or additional commands, use jordan --help
or -h
to see all available options.
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.
Clone the repository and install dependencies:
git clone git@github.com:cinnabar-forge/jordan.git
cd jordan
npm install
Cinnabar Forge Jordan is licensed under the ISC License - see the LICENSE file for details.
- Timur Moziev (@TimurRin)