Batch move entire folders from one drive to another

puttputtus

Honorable
Mar 20, 2013
14
0
10,520
I have a computer that I use as a DVR for recording security footage. That hard drive that I live record to is 600GB. I have a separate hard drive with just over 8TB that I can store up to 2 months worth of footage on. Every 3 days, my live record hard drive fills up. Because of this, I need to move this footage over to my storage drive every 2 days. I am looking to write a batch file that can move entire folders with footage from my live record drive to my storage drive. I'm not asking this question without doing my own work. I've consulted my friend, Google, but up to now, the batch files that I've tried didn't work when I put them in Task Scheduler.

I could use some help (1) writing a .bat to move entire folders, and (2) a .bat file (or line within that same file?) to delete those folders from the live record drive to give me some much needed space!

I am a newb when it comes to batch files and their commands so I know all of you experts can be of great assistance. Thanks in advance! (Perhaps by the time I receive answers I'll have it figured out ;) but right now I could really use the help!...)
 

puttputtus

Honorable
Mar 20, 2013
14
0
10,520
Thanks, USAFRet! Hadn't thought of simply using a backup software. Though, this method still requires me to manually delete the folders once they're backed up. Thanks for your input!

 

puttputtus

Honorable
Mar 20, 2013
14
0
10,520

Ok, understood. I can sync the folders to the storage drive with this program, but I would still need to create a batch file that would delete folders that are older than, say, 2 days. Can you point me in a direction to accomplish this?

I'm still searching and experimenting but some help from an expert would be appreciated...
 

USAFRet

Titan
Moderator


It will copy files and or folders.
I'd have to look to see if it will also delete the source location.
 

puttputtus

Honorable
Mar 20, 2013
14
0
10,520


Yea, don't think it will delete the source. I'll need to write a batch file for that and throw it in Task Scheduler. Doesn't sound that difficult, but...lol

 

puttputtus

Honorable
Mar 20, 2013
14
0
10,520


Just to be clear for anyone reading this thread, SyncBack Free did not exactly solve my problem.

I installed SyncBack and set it up with its integrated Task Scheduler wizard to backup my files at 3:00 am. When I got to the computer in the morning, my computer had crashed and was having trouble booting into Windows. I am reluctant to completely put the blame on SyncBack because it very possibly could have been as a result of me wrongly configuring a setting in SyncBack. User error! Unfortunately, I'm not perfect. However, in order to avoid another crash, I uninstalled SyncBack and have been cut+pasting the files manually. As of the time of this post, I am still looking for a batch command that will automate the cut+paste action every 2 days for me. Hopefully in the near future I can get this thing figured out.

Many thanks to USAFRet, however, for the help!