Backup Veracrypt Volumes

Hi There.
I’m a new to Duplicati and I realy, realy like it.
I have just one problem I do not find the solution for in Duplicati.

I use Duplicati to backup 2 kinds of data to an SFTP server.
Standaard data ( c:\data )
Veracrypt data ( r:\ ) (the files on the Veracrypt volume)

It is an automatic backup starting every morning at 10 am.
This work perfect.

But when the Veracrypt Volume ( R: ) is not mounted the backup wil not run and shows an error.
I hoped to find a solution where I could configure one of these options.:

    • The backup is only running if the Veracrypt Volume is available
    • The backup starts as soon as the Veracrypt Volume is available
    • The backup is running without an error not backup the Veracrypt Volume as that Volume is not available . If the Veracrypt volume is available running the backup backuping all.

The last option is the prefered option

Is this possible. Please help this newbee. TIA

Musicscore

Welcome to the forum @musicscore

Scripts shows how you can use a run-script-before script to control backup.

REM --run-script-before = <filename>
REM Duplicati will run the script before the backup job and waits for its 
REM completion for 60 seconds (default timeout value). After a timeout a 
REM warning is logged and the backup is started.
REM The following exit codes are supported:
REM
REM - 0: OK, run operation
REM - 1: OK, don't run operation
REM - 2: Warning, run operation
REM - 3: Warning, don't run operation
REM - 4: Error, run operation
REM - 5: Error don't run operation
REM - other: Error don't run operation

If you need an example of a batch file, search engines can help, e.g. I found this:

Check if drive letter exists in batch, or else goto another piece of code

1 Like