Jump to content

Somewhat complicated backup solution help required.

Go to solution Solved by Altecice,

Ok i figured it out myself. I just ran a scheduled task with a modified variant of the code above to backup to another directory :)

So I have an end goal that I wish to implement but I thought I would ask here to see if anyone has done this before or can give some insight.

 

What I want to do:

 

  • I plug in my College USB it finds the file on the disk and starts a simple backup to a folder I specify
  • The backup location that the USB was backed up to in the previous step is in turn backed up to a network share on my internal network/Nas

 

I have solved the first issue potentially myself with a simple .bat file:

if exist "E:\back-me-up.txt" (    @xcopy "E:\" "B:\COLLEGE_USB_BACKUP - %date:/=-%  - %time::=-%" /i /C /H /K /E) 

So what I have told it to do is look for a .txt file called "back-me-up.txt" if it exist then it will backup to my B:\COLLEGE_USB_BACKUP\ if not then it wont function (to stop it backing up just any old pen drive I plug in.

 

Would it be possible to get this .bat to run with every USB device plugged in? maybe a scheduled job?

 

The part Im having issues with is the second task, I am not sure how I will go about implementing an automatic backup of a directory to an external share. Can windows do this nativly or will I need to use a third-party software?

 

 

Any help is gladly appreciated :)

Quack 🦆

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×