Skip to content

aaron-kaplan/user-callback

 
 

Repository files navigation

user-callback

During backup process Back In Time can call a user-callback script at different steps. This callback is $XDG_CONFIG_HOME/backintime/user-callback (by default $XDG_CONFIG_HOME is ~/.config).

  • The first argument is the profile id (1=Main Profile, ...).
  • The second argument is the profile name.
  • The third argument is the reason:
  1. Backup process begins.
  2. Backup process ends.
  3. A new snapshot was taken. The extra arguments are snapshot ID and snapshot path.
  4. There was an error. The second argument is the error code.

Error codes:

  1. The application is not configured.
  2. A "take snapshot" process is already running.
  3. Can't find snapshots folder (is it on a removable drive ?).
  4. A snapshot for "now" already exist.
  1. On (graphical) App start.
  2. On (graphical) App close.
  3. Mount all necessary drives.
  4. Unmount all drives.

About

Example user-callback scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%