Quantcast
Channel: Backup – Windows and Windows Server forum
Viewing all articles
Browse latest Browse all 3323

Windows Server back up by c#/ badmin batch solution

$
0
0

Hi there,

I'm trying to program a small c# application that helps me set up my daily backups for my Windows Server 2016. I have to use this, as I want to do multiple backups per day aswell as different drives (built in hdd aswell as swappable usb drives) in combination with shutdowns depending on the weekday + daytime (aswell as unlocking my encrypted drives).

My program works fine but I'd like to have some confirmation from you whether or not my backup commands are fine.

Right now I use the Windows Server backup GUI for my daily HDD backup. My backup disappears upon setting up the sheduled backup. It's a nice feature, but I don't really depend on hiding my HDD, I'd be fine with havinig it visible.

For my external drives I use the following wbadmin command:
"wbadmin start backup -backupTarget:M: -include:C:,I: -allCritical -systemState -quiet"

M: is my external backup device and the system only has partition C and I.

Now I would like to stop the GUI backup and 'transfer' it to my c# program to take over. I'm a little bit confused about the commands tho. 
Am I missing anything with "wbadmin start backup -backupTarget:M: -include:C:,I: -allCritical -systemState -quiet" in comparising with GUI bare metal backup? What happens when my external drives with wbadmin command are full? Does incremental backup works aswell with the wbadmin command?

Thanks a lot.


 



Viewing all articles
Browse latest Browse all 3323

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>