WIN_DASI on the command line
The program windasi-cli runs the same profiles as the window program, but without a window and without asking questions. It is suited to your own scripts and to computers without a graphical desktop.
You do not need the command line for a regular backup: the automatic backup is set up in the program with a few clicks.
Commands
The commands and options keep their German names in every language.
windasi-cli profile list profiles
windasi-cli sichern <profile name>... back up one or more profiles
windasi-cli pruefen <profile name> count and check only, copy nothing
windasi-cli wiederherstellen <profile name> bring a backup back
windasi-cli protokoll <profile name> print the latest log
Put profile names containing spaces in quotation marks. Upper and lower case make no difference in the name.
windasi-cli sichern "Accounting daily" "Office documents"
Options
| Option | Meaning |
|---|---|
--daten <path> | a different data folder with profiles and logs |
--sprache <code> | output language, en or de |
--ueberschreiben immer|nie | overrides the profile setting for existing files (immer = always, nie = never) |
--ziel-anlegen | creates a missing destination folder |
--nach <folder> | when restoring: into this folder instead of the original location |
--json | output as JSON lines for further processing |
--still | prints errors only |
--hilfe, --version | overview and program version |
Exit codes
| Value | Meaning |
|---|---|
| 0 | successful |
| 1 | completed, but individual files could not be backed up |
| 2 | invalid call or profile not found |
| 3 | cancelled |
| 4 | failed, nothing was backed up |
No questions
- If the profile is set to “ask” for existing files, the command line requires
--ueberschreiben immeror--ueberschreiben nie. - A missing destination folder is only created with
--ziel-anlegen. If the destination is missing, a drive is usually not connected; the backup should then not silently end up somewhere else. - When restoring, existing files are kept unless you pass
--ueberschreiben immer.
Archive password
For profiles with a password-protected archive the command line reads the password from the keychain of the operating system. On computers without a keychain, such as servers, pass it in the environment variable WINDASI_PASSWORT.
Example: backup with evaluation in a script
windasi-cli --still sichern "Accounting daily"
if [ $? -ne 0 ]; then
windasi-cli --sprache en protokoll "Accounting daily" | mail -s "Backup finished with errors" admin@example.org
fi