Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > >

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 06-19-2017, 02:26 AM   #1
sportstrade
newbie
 
Join Date: Jun 2017
Posts: 43
robocopy question

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.
sportstrade is offline   Reply With Quote
Old 06-19-2017, 07:08 AM   #2
just_grindin
Pooh-Bah
 
Join Date: Dec 2007
Posts: 4,145
Re: robocopy question

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
just_grindin is offline   Reply With Quote
Old 06-19-2017, 07:38 AM   #3
sportstrade
newbie
 
Join Date: Jun 2017
Posts: 43
Re: robocopy question

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
sportstrade is offline   Reply With Quote
Old 06-19-2017, 10:03 AM   #4
just_grindin
Pooh-Bah
 
Join Date: Dec 2007
Posts: 4,145
Re: robocopy question

Quote:
Originally Posted by sportstrade View Post
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?
just_grindin is offline   Reply With Quote
Old 06-19-2017, 10:10 AM   #5
sportstrade
newbie
 
Join Date: Jun 2017
Posts: 43
Re: robocopy question

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.
sportstrade is offline   Reply With Quote
Old 06-19-2017, 11:05 AM   #6
just_grindin
Pooh-Bah
 
Join Date: Dec 2007
Posts: 4,145
Re: robocopy question

Every Google result points to a file permission error:

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

Sent from my SM-G900R4 using Tapatalk
just_grindin is offline   Reply With Quote
Old 06-19-2017, 11:06 AM   #7
just_grindin
Pooh-Bah
 
Join Date: Dec 2007
Posts: 4,145
Re: robocopy question

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
just_grindin is offline   Reply With Quote
Old 06-19-2017, 11:11 AM   #8
sportstrade
newbie
 
Join Date: Jun 2017
Posts: 43
Re: robocopy question

So would I have to do each file individually? as there are about 450 files in total.
sportstrade is offline   Reply With Quote
Old 06-19-2017, 03:10 PM   #9
just_grindin
Pooh-Bah
 
Join Date: Dec 2007
Posts: 4,145
Re: robocopy question

Quote:
Originally Posted by sportstrade View Post
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
just_grindin is offline   Reply With Quote
Old 06-22-2017, 01:47 AM   #10
headtrauma
journeyman
 
Join Date: Jan 2007
Location: Redmond, WA
Posts: 200
Re: robocopy question

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.
headtrauma is offline   Reply With Quote
Old 06-22-2017, 06:05 AM   #11
sportstrade
newbie
 
Join Date: Jun 2017
Posts: 43
Re: robocopy question

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?
sportstrade is offline   Reply With Quote
Old 06-22-2017, 07:43 AM   #12
headtrauma
journeyman
 
Join Date: Jan 2007
Location: Redmond, WA
Posts: 200
Re: robocopy question

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
headtrauma is offline   Reply With Quote
Old 06-22-2017, 07:51 AM   #13
sportstrade
newbie
 
Join Date: Jun 2017
Posts: 43
Re: robocopy question

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.
sportstrade is offline   Reply With Quote
Old 06-23-2017, 09:23 AM   #14
headtrauma
journeyman
 
Join Date: Jan 2007
Location: Redmond, WA
Posts: 200
Re: robocopy question

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
headtrauma is offline   Reply With Quote
Old 06-24-2017, 12:41 AM   #15
sportstrade
newbie
 
Join Date: Jun 2017
Posts: 43
Re: robocopy question

thank you, much appreciated!
sportstrade is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Forum Jump


All times are GMT -4. The time now is 02:39 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ę 2008-2010, Two Plus Two Interactive
 
 
Poker Players - Streaming Live Online