Skip to content

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

OptionMeaning
--daten <path>a different data folder with profiles and logs
--sprache <code>output language, en or de
--ueberschreiben immer|nieoverrides the profile setting for existing files (immer = always, nie = never)
--ziel-anlegencreates a missing destination folder
--nach <folder>when restoring: into this folder instead of the original location
--jsonoutput as JSON lines for further processing
--stillprints errors only
--hilfe, --versionoverview and program version

Exit codes

ValueMeaning
0successful
1completed, but individual files could not be backed up
2invalid call or profile not found
3cancelled
4failed, nothing was backed up

No questions

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