Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a backup batch file for backing up my programming code

Just been reading through the questions that other people have been asking about batch files, and can't find anything useful.

I am wanting to backup all of my c# code, using a batch file. Please help me to find out what I am doing wrong?

This is what I am asking my batch file to run:

copy C:\Visual Studio Express\Test Programs\Program 1\ c:\Backup Code\

Everytime I find some code on google, it shows something like this:

copy C:\Fred\*.exe g:

Now that is useless to me, as I tried that, and that code has got no spaces in, like mine does.

If you can help me out, that would be greatly appreciated. Thanks!

like image 521
Kevdog777 Avatar asked Aug 28 '26 02:08

Kevdog777


1 Answers

Try:

copy "C:\Visual Studio Express\Test Programs\Program 1\" "c:\Backup Code\"

That said, you can run a source control repository locally, take a look at this tutorial for some information on how to setup a "local" SVN source control repository. This can function as a backup and has the added advantage of giving you a history of backups.

like image 107
Rob Avatar answered Aug 29 '26 15:08

Rob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!