Scheduled vcbmounter scripting question.?

Posted on 2009-02-23
Last Modified: 2012-05-06
I want to run a scheduled task to run a vcbmounter full vm backup, my question is how can I let the script maintain the abilty update VM full backups automatically?
Question by:cap7
    LVL 21

    Expert Comment

    Could you rephrase your question?
    If I understand you correctly, you want to create a scheduled task that does. Normally it is easy in the sense that the command you use to backup your VM via VCB can be put into a bat/cmd file and then be configured to execute at certain intervals via scheduled tasks.
    This funky script from Duncan Epping could also help you :-

    Author Comment

    That is a interesting script. I am wondering how if once th basic fullvm script runs, how can it run again when the destination is still there from last time?
    LVL 21

    Accepted Solution


    If you look at the command, it is acutally multiple commands sent on one line..

    for /f tokens=2 delims=: %%i in (vcbvmname -h -u administrator -p password -s Powerstate:on ^| find name:) do @rd /s /q D:\Backups\All\%%i &vcbmounter -h -u administrator -p password -a name:%%i -r D:\Backups\All\%%i -t fullvm > D:\Backups\All\%%i.log

     The bold section is the command that deletes the directory to which the previous backups were made and the bold italic section is that command that starts the backups again recreating the destination that was removed previously.

    Hope this makes sense.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    VMware vCenter Converter Standalone 5.0 is a FREE tool available from VMware upon registration, the purpose of this software tool is to easily convert physical or virtual computers, images of computers to VMware virtual machines. Server and Workstat…
    Using a software based iSCSI solution, there is no requirement to purchase an hardware iSCSI initiator or TOE (TCP/IP Offload Engine) interface card. A standard network interface card, can be used to connect and existing ESXi server to a remote iSCS…
    Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
    Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now