Open Side Menu Go to the Top
Register
robocopy question robocopy question

06-19-2017 , 02:26 AM
I've stored about 8000 videos on a external hard drive (F) for work and when I save new videos daily I select all and copy and paste the whole F folder to the second folder (G) which is a second backup external hard drive and it displays the option to skip files which are already saved to G which i do takes a few minutes basically.

I was wondering if they can be copied to a second external hard drive using robocopy? would this be the way to go like does robocopy copy anytime you add a new video to F drive itself or do you need to do some type of command type in something for it to copy each new file?

Each days videos are saved to a individual file, so their might be like 40 videos for the day in say file named 1/1/17 etc.

When I followed a robocopy video on yourtube I didn't know how to copy files with videos in them. I'm wondering if someone can explain how to do this or if its just as easy to just copy and paste the videos daily instead of using robocopy?

I mean if robocopy just copies the new videos itself without needing me to type in anything then that would be cool, as copying pasting takes a few minutes but robocopy doing it auto as i said would be handy.
robocopy question Quote
06-19-2017 , 07:08 AM
I believe some of the switches will do what you want but you will have to combine them to get your desired results. I'm not sure how well /mon works. I think it only runs once so you'd have to call it every time you want to copy any way. Your best bet would be create a scheduled task to run at a regular interval and either use builtin functionality or create a batch file to run the robocopy command with switches. There is probably free backup software out there that can do all of this for you as well. Technet information for robocopy: https://technet.microsoft.com/en-us/...(v=ws.11).aspx

Sent from my SM-G900R4 using Tapatalk
robocopy question Quote
06-19-2017 , 07:38 AM
thanks for that

In cmd I typed

robocopy Source destination /mir

which was

robocopy Documents Folder /mir and it copied all files from documents to folder

I done this just to see if i done it correctly

but when i tried it from external hard drive F to the second hard drive

its displaying error (0x00000005) Accessing destination G:\ access is denied trying again
robocopy question Quote
06-19-2017 , 10:03 AM
Quote:
Originally Posted by sportstrade
thanks for that

In cmd I typed

robocopy Source destination /mir

which was

robocopy Documents Folder /mir and it copied all files from documents to folder

I done this just to see if i done it correctly

but when i tried it from external hard drive F to the second hard drive

its displaying error (0x00000005) Accessing destination G:\ access is denied trying again
I'm surprised /mir copied files based on it's description but if it did great.

The access permission issue seems odd. Is this a mounted USB hard drive or a network drive?
robocopy question Quote
06-19-2017 , 10:10 AM
I'm a noob with computers so not sure which of the two, but i bought just a external 1 terabyte hard drive which i plugged into the desktop usb.

I even done the same but instead to the computers own hard drive from F and same thing.
robocopy question Quote
06-19-2017 , 11:05 AM
Every Google result points to a file permission error:

https://community.spiceworks.com/top...access-denined

Sent from my SM-G900R4 using Tapatalk
robocopy question Quote
06-19-2017 , 11:06 AM
To elaborate the file you are trying to copy to or to copy from doesn't have the correct permissions for the account you are using to copy.

Sent from my SM-G900R4 using Tapatalk
robocopy question Quote
06-19-2017 , 11:11 AM
So would I have to do each file individually? as there are about 450 files in total.
robocopy question Quote
06-19-2017 , 03:10 PM
Quote:
Originally Posted by sportstrade
So would I have to do each file individually? as there are about 450 files in total.
Well it seems odd you can manually copy and paste them to the required place. Robocopy does some weird things sometimes. Try copying with /COPYALL or the other switches that copy security permissions. It's possible that Robocopy is creating a directory with no permissions so it can't copy files into the directory once created for the copy job. By using copyall or the copy switch with security permissions the new directory should inherit permissions to allow you to save there.

Sent from my SM-G900R4 using Tapatalk
robocopy question Quote
06-22-2017 , 01:47 AM
Hey Sportstrade,
Seeing as I may have stirred this up in the CTH Backup thread, I'd be happy to help out here.
Robocopy mirror should be used with caution. This will copy any files in the source but not the destination, but will also delete any files and folders in the destination that are not in the source. This can be a good thing, if you have content that is intentionally deleted from the primary location and also wish to delete it from the backup location on sync. This can be bad if you delete a file by mistake and sync your changes to the backup location, deleting your second copy.

Make sure you are running from an Admin Command Prompt (see bottom example in the pic.

Example robocopy to copy a folder, all subfolders including empty, and redirect the logging to a textfile (on copies of many small files, redirecting the output to a log file can actually speed things up significantly because the console write speed is the limiting factor. There is the bonus of the log sticking around after you close the console window as well). I would suggest using full folder paths rather than library names, if you were using those before.

robocopy /zb /e /log+C:\robolog.txt F:\Videos G:\Videos

Robocopy can also copy to a network location on a NAS or second PC.
for example:

robocopy /zb /e /log+C:\robolog.txt F:\Videos \\myNAS\Videos

If you want this to happen on a regular schedule, you can set up a scheduled task using Windows Task Scheduler. If you want to do this on demand, you can save the robocopy string in a .cmd file and just run that when you want to sync the folders.
robocopy question Quote
06-22-2017 , 06:05 AM
OK thanks! So just to explain exactly, the videos are not stored in the computers hard drive because its only I think 229GB, so I bought two external 1 terabyte hard drives, one is always plugged into the USB called F this one stores all the videos and stuff that I want to back up. The second hard drive G, I plug in at the end of the days work and copy all video from F and paste to G and then unplug G and keep it in a separate place.

The are some videos in G that are not in F which I still want to keep, so don't want to delete them from G, so what do I need to type in cmd to transfer all F videos to G while not deleting the extra videos and files from G?
robocopy question Quote
06-22-2017 , 07:43 AM
run this, change to your actual folder paths on F and G. Do not use the /MIR option.

robocopy /zb /e /log+:C:\robolog.txt F:\Videos G:\Videos
robocopy question Quote
06-22-2017 , 07:51 AM
Ok thanks, maybe a good idea if i buy another hard drive since i was going to anyway and save and backup all videos first to that hard drive and then do it since I'm a noob haha? being a noob I might delete or whatever all the videos away as there is over 10,000 videos.
robocopy question Quote
06-23-2017 , 09:23 AM
Try this first. /L argument lists files that would be copied, but does not copy or delete any files.
robocopy /e /L F:\Videos G:\Videos
robocopy question Quote
06-24-2017 , 12:41 AM
thank you, much appreciated!
robocopy question Quote

      
m