VBScript for multiple backups one after the other and afterwards run external program


VBScript for multiple backups one after the other and afterwards run...
Author
Message
DanMan
DanMan
New Member
New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)
Group: Forum Members
Posts: 2, Visits: 5
Hello.

I have multiple tasks, each for a partition, of which some are on the same disk and some on different disks. Every task is named after the partition letter, and they all are saving the backup files on a network drive, each in a folder also named after the corresponding partition letter, which you can see at the bottom of this screenshot:
https://drive.google.com/file/d/138phq51FRqFInSxG-B2GsYw1Wp04qXN_/view?usp=drivesdk

I have them seperated and not in one task, because sometimes I want to start them individually, not all at once.

I also use VBScript files for each partition backup. For each partition a "full", and also an "incremental" backup launcher. See here:
https://drive.google.com/file/d/1JL6oOqqq7A463QJ9XuOKs2wUb8ktHbq0/view?usp=drivesdk

The VBScripts are necessary in this case because a custom program/script needs to be started after the backup, which you can see in this code example of one of the scripts:
https://drive.google.com/file/d/1ptikcpKrCX16RvqhhrpaAMc3wTuaHzxN/view?usp=drivesdk

What I need now - and don't know how to do it - is to create a VBScript which for instance will start 3 of the 4 partition backups (C, D and E). Let's say all in incremental mode. And after all backups are done, THEN a custom program (as seen in the last screenshot) should be started. But all backups should be saved in the individual network drive folders and follow the rules of the individual backup tasks.

How would such a VBScript file look like? (if even possible)

Thanks.
Nick
Nick
Macrium Representative
Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)
Group: Administrators
Posts: 3.2K, Visits: 22K
DanMan - 23 May 2019 11:38 AM
Hello.I have multiple tasks, each for a partition, of which some are on the same disk and some on different disks. Every task is named after the partition letter, and they all are saving the backup files on a network drive, each in a folder also named after the corresponding partition letter, which you can see at the bottom of this screenshot:https://drive.google.com/file/d/138phq51FRqFInSxG-B2GsYw1Wp04qXN_/view?usp=drivesdkI have them seperated and not in one task, because sometimes I want to start them individually, not all at once.I also use VBScript files for each partition backup. For each partition a "full", and also an "incremental" backup launcher. See here:https://drive.google.com/file/d/1JL6oOqqq7A463QJ9XuOKs2wUb8ktHbq0/view?usp=drivesdkThe VBScripts are necessary in this case because a custom program/script needs to be started after the backup, which you can see in this code example of one of the scripts:https://drive.google.com/file/d/1ptikcpKrCX16RvqhhrpaAMc3wTuaHzxN/view?usp=drivesdkWhat I need now - and don't know how to do it - is to create a VBScript which for instance will start 3 of the 4 partition backups (C, D and E). Let's say all in incremental mode. And after all backups are done, THEN a custom program (as seen in the last screenshot) should be started. But all backups should be saved in the individual network drive folders and follow the rules of the individual backup tasks.How would such a VBScript file look like? (if even possible)Thanks.

Thanks for posting. Is this what you're looking for?

' Do the backup
    Backup("""D:\Program Files\Macrium\Reflect\ReflectBin.exe"" -e -w -inc ""E:\backups\DiskStation\xml\C.xml"" -g")
    Backup("""D:\Program Files\Macrium\Reflect\ReflectBin.exe"" -e -w -inc ""E:\backups\DiskStation\xml\D.xml"" -g")
    Backup("""D:\Program Files\Macrium\Reflect\ReflectBin.exe"" -e -w -inc ""E:\backups\DiskStation\xml\E.xml"" -g")

' Run program after backup
    objShell.Run """E:\Backups\DiskStation\poweroffDiskStation\poweroffDiskStation.ahk""", 1, true


https://knowledgebase.macrium.com/display/KNOW72/Using+VBScript+to+run+sequential+backups


Kind Regards

Nick

Macrium Support

Next Webinar

See our reviews on

Trustpilot Logo
Trustpilot Stars


Edited 23 May 2019 12:07 PM by Nick
DanMan
DanMan
New Member
New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)
Group: Forum Members
Posts: 2, Visits: 5
Works perfectly. Thanks!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Login

Explore
Messages
Mentions
Search