For further information, see the backintime <https://github.com/bit-team/backintime>
_ repository and its issue tracker <https://github.com/bit-team/backintime/issues>
_.
During the backup process, Back In Time <https://github.com/bit-team/backintime>
_ can call a user-callback script at different steps.
This user-callback script is contained in the file $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:
-
Backup process begins.
-
Backup process ends.
-
A new snapshot was taken. The extra arguments are snapshot ID and snapshot path.
-
There was an error. The fourth argument is the error code.
Possible error codes are:
- The application is not configured.
- A "take snapshot" process is already running.
- Can't find snapshots folder (is it on a removable drive ?).
- A snapshot for "now" already exist.
- Error while taking a snapshot (introduced Aug. 17, 2023)
- New snapshot taken but with errors (introduced Aug. 17, 2023)
The optional fifth argument just for errors is the error message.
-
On (graphical) App start.
-
On (graphical) App close.
-
Mount all necessary drives.
-
Unmount all drives.
For implementation details see the source code in the file pluginmanager.py]
(https://github.com/bit-team/backintime/blob/dev/common/pluginmanager.py).