Skip to main content

Pre/Post commands

Thread needs solution

I want to use Acronis to backup Lightroom "database".  The reason I put "database" in quotes is because it is made up of tens of thousands of little files in thousands of folders and sub-folders and sub-folders ...  Plus there one very large "master catalog" file that points to all of these folders and files.  A successful recovery of this data would mean that all of the data is backed up during a quiescent period (no one accessing any of the files).

The user manual is painfully thin on this topic, but I think what I want to do is make a batch file that runs as a pre-command that will a) test to see if the application is running, b) delay and c) loop until the application closes, then proceed with the backup.

Combined with "Do not perform operations until the command's execution is complete" it sounds like it should do the job.

Does this sound reasonable ?

Other suggestions ?

 

0 Users found this helpful

Jack, if you are confident to create a batch command file that will do the steps that you want, i.e. test if the application is active, and delay if so, etc, then this should work fine.

I don't know anything about Lightroom or how it works, so you will need to determine how to do the check for it being active.

In terms of the general principle, you can setup a simple loop in a batch file and only exit this when the test is satisfied that Lightroom is not active, to continue with the ATI backup task.

@echo off
set loopcount=720
:loop
echo Checking for Lightroom activity
:: check goes here.
:: if check is ok exit /b 0
set /a loopcount=loopcount-1
if %loopcount%==0 goto exitloop
rem wait for 10 minutes (600 seconds)
timeout /t 600
goto loop
:exitloop
echo Looped for 12 hours (720x10 minutes) and Lightroom still active
exit /b 1