Automated mount option in BIT

Asked by Andreas

Is there a way to get BIT to automatically mount an unmounted drive befor backing up. (no root privilege needed for mounting)
And after backup unmounting the drive.

A workaround would be to create a script that does the mounting itself and then run backintime -b to get the main profil to run a backup but I would like to use the gui sometimes.
I also don't know how to get BIT to run a backup for a specific profil using console commands.

Thanks for any help

Question information

Language:
English Edit question
Status:
Solved
For:
Back In Time Edit question
Assignee:
No assignee Edit question
Solved by:
Andreas
Solved:
Last query:
Last reply:
Revision history for this message
Germar (germar) said :
#1

Hi Andreas,

I wrote a framework for mounting that is available in BIT versions >1.0.10. But for now this is only used to mount sshfs. ATM I'm working on modes that mount encrypted folders with encfs. Other modes will follow and I'll consider providing a mode for custom mount scripts, too.

For now you can only use the user-callback script. Take a look at 'man backintime' user-callback section. You'll find a basic structure for that in bug #1145544.
But this will only run before and after creating a new snapshot. For GUI you'd have to mount manually.

The profile can be set by '--profile <profile name>' or '--profile-id <profile id>'

Regards,
Germar

Revision history for this message
Andreas (launchmail8) said :
#2

Thank you for the reply.

I am looking forward to the new features