Pre/Post - backup events

Questions about Cobian Reflector
montesas
Posts: 4
Joined: 24 Sep 2021, 13:22

Pre/Post - backup events

Post by montesas »

Hi again:

I use "net use" to capture a network drive before backup and that I specify in Pre / Post - backup events - command line. Then when doing the backup, a cmd window opens without that instruction, empty, and that does not close. I don't know how to fix that.

Thank you!
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Pre/Post - backup events

Post by cobian »

I'll check this out soon. Thanks!
--
Luis Cobian
Cobian Backup's creator
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Pre/Post - backup events

Post by cobian »

Just use

/C "NET USE ....etc"

/C must be included and the rest must be surrounded by quotes
--
Luis Cobian
Cobian Backup's creator
montesas
Posts: 4
Joined: 24 Sep 2021, 13:22

Re: Pre/Post - backup events

Post by montesas »

It works perfectly, thank you very much!!
ira
Posts: 101
Joined: 02 Nov 2021, 19:16

Re: Pre/Post - backup events

Post by ira »

Just found Reflector yesterday and had to figure this out too. I wonder if the import should add the /C when importing events from Cobian backup?

Ira
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Pre/Post - backup events

Post by cobian »

Perhaps...
--
Luis Cobian
Cobian Backup's creator
ira
Posts: 101
Joined: 02 Nov 2021, 19:16

Re: Pre/Post - backup events

Post by ira »

Or a warning they need to be fixed?

Ira
ira
Posts: 101
Joined: 02 Nov 2021, 19:16

Re: Pre/Post - backup events

Post by ira »

I also noticed when using events where the first event connects to a remote device using "net use," backups up the remote device and then disconnects at the end of the backup that the file size is checked before running the pre-backup events, thereby preventing Reflector from seeing the files it's about to backup.

Ira
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Pre/Post - backup events

Post by cobian »

Yes, this is a problem...

The only solution here at the moment is to mount the drive and add the source from the drive so the source is not manual...
--
Luis Cobian
Cobian Backup's creator
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Pre/Post - backup events

Post by cobian »

For the next version you can add a ?D? to your manual path to force the manual directory to be a not yet existing directory. Or a ?F? to force a not yet existing file.

Example: ?D?B:\Mounted
--
Luis Cobian
Cobian Backup's creator
Post Reply