Cobian used from cmd exits immediately

Questions about Cobian Backup 11 (Gravity)
Post Reply
zbartal
Posts: 3
Joined: 18 Mar 2022, 21:19

Cobian used from cmd exits immediately

Post by zbartal »

Hi,
I am new to using cobian and setting up a backup I encountered a problem that I can not seem to solve.
I am using the command cobian.exe "-list:c:\Program Files (x86)\Cobian Backup 11\DB\MainList.lst" -nogui -bu -autoclose from batch file. The command immediately exits even if the backup is processing, also without the autoclose command. This is a problem because I need to run other commands after the backup is definitely done. Is there something I can do to have the command be active until it is complete?
User avatar
cobian
Site Admin
Posts: 4608
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Cobian used from cmd exits immediately

Post by cobian »

What does the log file say?
--
Luis Cobian
Cobian Backup's creator
zbartal
Posts: 3
Joined: 18 Mar 2022, 21:19

Re: Cobian used from cmd exits immediately

Post by zbartal »

The first two lines are immediately after the command exits, the rest got logged after a while.

2022-03-19 00:23 Welcome to Cobian Backup 11 Gravity!
2022-03-19 00:23 *** A new backup has started. Number of tasks in queue: 1 ***
2022-03-19 00:23 Preventing the system from entering sleep mode...
2022-03-19 00:23 ** Backing up the task "New task" **
2022-03-19 00:23 Counting the files for the task "New task"...
2022-03-19 00:23 Starting the Volume Shadow Copy snapshot for the drives: C:\
2022-03-19 00:23 The Volume Shadow Copy snapshot set has been created successfully
2022-03-19 00:23 Creating the destination directory "C:\Users\xuser\Documents\Debug 2022-03-19 00;23;18 (Full)"
2022-03-19 00:23 The destination directory "C:\Users\xuser\Documents\Debug 2022-03-19 00;23;18 (Full)" has been successfully created
2022-03-19 00:23 Backing up the directory "GLOBALROOT\Device\HarddiskVolumeShadowCopy13\Users\xuser\Desktop\Debug"
2022-03-19 00:23 Deleting the Volume Shadow Copy snapshot "29231351-6dde-4b29-a18b-feac32b532e6"
2022-03-19 00:23 The Volume Shadow Copy snapshot set has been successfully deleted
2022-03-19 00:23 Total backup time for "New task": 0 hours, 0 minutes, 5 seconds
2022-03-19 00:23 ** Backup done for the task "New task". Errors: 0. Processed files: 419. Backed up files: 419. Total size: 357,38 MB **
2022-03-19 00:23 --
2022-03-19 00:23 The system can now enter sleep mode
2022-03-19 00:23 Total backup time: 0 hours, 0 minutes, 9 seconds
2022-03-19 00:23 *** Backup done. Errors: 0. Processed files: 419. Backed up files: 419. Total size: 357,38 MB ***
2022-03-19 00:23 --
2022-03-19 00:23 Auto-close command line detected. Closing the user interface
2022-03-19 00:23 Auto-close command line detected. Closing the engine
User avatar
cobian
Site Admin
Posts: 4608
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Cobian used from cmd exits immediately

Post by cobian »

There are no errors.

The program starts.
The source files are counted.
The VSC is created.
The destination directory is created.
The files are backed upp (419)
The VSC is deleted.
The program is closed because -autoclose is used.

I don't understand what the problem is... What are you expecting?
--
Luis Cobian
Cobian Backup's creator
zbartal
Posts: 3
Joined: 18 Mar 2022, 21:19

Re: Cobian used from cmd exits immediately

Post by zbartal »

The backup is created correctly, the problem is that when I run the command to create it exits immediately. If I wanted for example shut down the computer after the backup is complete and created a batch file for it the computer is shut down immediately without the backup being created.
User avatar
cobian
Site Admin
Posts: 4608
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Cobian used from cmd exits immediately

Post by cobian »

Then this is a question for how to make a batch file wait for completion (not related to this program). I think you can use /B for that, but I'm not a batch expert https://stackoverflow.com/questions/401 ... -to-finish
--
Luis Cobian
Cobian Backup's creator
Post Reply