Thank you SO much, I didn't want to deal with complicated 3rd-party programs which backs up files into proprietary formats. This is exactly what I was looking to do.
Thanks for this, but when we are copying backup file on daily basis the name of the backup file will be same everyday so when this script will run it will over write the previous file, is there any solution for this?
It will be only overwritten if there are any changes in the files with the same names. Don't worry the modified files with the same names will be updated automatically.
Thanks for sharing this...can we move one unique File name to another folder. For example A pdf name is XYZ, it should move to ABC folder automatically . Can you help.
Sir, Thank you very much for this video. I have a question ? I back up a particular folder from pc to pen drive. I want, when I connect the pen drive to pc it will automatically backup those folder every time. Is it possible? Or run the .bat file every times?
In the Task Scheduler ( Triggers' part), choose Daily from the Settings. Then go down to the Advanced settings and check Repeat task every: 1 minute for a duration of 1 day Note: we cannot go below 1 minute. Hope this helps you.
Perfect explanation. this is what I was searching for since a long time. is there a way to automatically eject my external hard disk after the backup is complete? Just to prevent any virus attack to my external drive.
Thanks a lot. I couldn't find how it is automatically being ejected. Hopefully if we know this, we can set to the auto ejection after the backup is done.
This is simply Brilliant! I work in a graphics department. I make an Adobe Illustrator file and then save a .pdf as a proof in the same folder. Sometimes I have over 100 folders with these types of files. So, each folder will contain 1. an Illustrator file and 2. a .pdf file. How can I make a copy of the .pdf file so that it gets copied into the main _PROOF folder? Every time a proof gets approved, I have to copy the .pdf file and paste it into the _PROOF folder manually. Too much work! And sometimes I forget to do it. Any assistance would be greatly appreciated, Guru. Thank you!
Yes, it will replace or update all the existing files. For the different time periods, go to your Task Scheduler Library and choose your task name. Go to triggers and click on Edit. There you can select On time, Daily, Weekly and Monthly.
Thanks for the reply. How can update only edit files by autorun? we don't want to do other folders and files? My data is 90 GB, and every time is not possible to copy by autorun, so we want to do only edit file of folder update
If you edit files in the source folder, the same can be replaced in the destination folder by autorun. However, you have to change the code a little bit.
Really helped me on the network backup. I need bit more help, please let me know how can we cut and paste the date from Source to desitnation folder.. will be waiting for your response..Appricaite for your help in advance..Thanks alot
Sir, one think that I doubt about if I want to let that task run many times in one day should I create many new task in task scheduler? But I think this is not an efficient way, if I want it to run at every 10minutes, hope to get your advise soon
sir i have problem because i have a main folder and i have 6 other folders in main folder and every folder is deferent of each others in internal hard drive and not using external memory and i want to auto update all these folders please sir help me
It doesn't matter whether it is an external or internal drive. It will work the same. If you have subfolders in the source folder, all the subfolders can be also backup to the destination folder.
would this work even if on the time of trigger you are not log in as admin? the situation is like this. we have 2 user account. admin and sales representative. the destination folder is an admin folder inside the user folder (onedrive to be exact). but the one who is logon currently when the trigger time came is the sales representative who clearly have no access to admin folders. would the xcopy execute and do it's job even if the user have no access to the destination folder? coz I'm trying to secure backup files in a daily basis.
I do hope it will work but you have to run the batch file from the user account and make sure you check "Run with the highest privileges" in the task scheduler part. Also, check part 2 and part 3 of this video for more information. Thanks!
It will not overwrite. Any new files in the Source folder will be copied to Destination Folder. Your old files in the destination folder won't be affected.
@@SirChogyal what if I update the excel file in the source folder. Will the same file in destination folder updates too? Or will it create another copy of that file?
Very good question. I thought that I should give you another code but fortunately this works. Go ahead friend. Any changes in your excel document will affect accordingly.
If the file names in the source folder and destination folder are matching , the old files in the destination folder will be replaced from the source folder upon backup. However, if the files are not altered or updated in the source folder, such files will not copy or update to the destination folder- (even if the file names are matching). PS: New files will be updated.
Hi sir, I want to ask you something… How to make a copy and paste method “modified” and “created” a duplication if when I work a fix create from save file modified date
It will be modified any files in the destination if you make any changes to the source files. However, it seems that we cannot create duplications. You may manage your created files in a separate backup.
Thanks for this video, can you do something more advance with more options for example? this update the files if you do any change but has the same name? imagine we have a file named: picture1.jpg (5kb) but you did changes and now is picture1.jpg (6kb) will it recognize and update the destination folder?
Yes, it will update the file sizes. If you make any changes to the file sizes at the Source Folder, your all the existing files at the Destination Folder with the same names will be overwritten.
I have no knowledge about the incremental backup. However, after referring the definition of Incremental Backup, I feel the backup method shown in this video is similar to the incremental backup since it copies only the files which are altered in the source folder.
@@SirChogyal Thx for the response mate. I rarely get that and I appreciate the effort. So I guess my question would be better framed if I say: If you delete something in the source after backing up, the next time to back up again the target platform will not be updated for that object being deleted, right? Meaning you can only add on to the target, but not update or delete from the target. Right?
@@SirChogyal What to do if some file is deleted from the source folder, then i want that file to be deleted from the destination folder too? pls help asap.
Can this work in both directions? By setting up two .bat files and inverting the folder names? xcopy "PATH OF THE SOURCE FOLDER" "PATH OF THE DESTINATION FOLDER" /Y /E /D /C /F /H /I /Z /J /S /K /R xcopy "PATH OF THE DESTINATION FOLDER" "PATH OF THE SOURCE FOLDER" /Y /E /D /C /F /H /I /Z /J /S /K /R
I want to create a folder according to the next two words and transfer the file into it automatically and if there is another file in it, then read the next two letters and create a folder text according to that, then the transfer will be done automatically. I want to learn this.
Yes it will work. You need to copy the path of your folder in your network and replace with PATH OF THE DESTINATION FOLDER to the command below. xcopy "PATH OF THE SOURCE FOLDER" "PATH OF THE DESTINATION FOLDER" /Y /E /D /C /F /H /I /Z /J
Go to Triggers tab. Click New. Go down to Advanced Settings. Check Repeat task every. Type 1 hour or 3 minutes or 5 minutes or any time gap you want. At the right side (for a duration of), choose indefinitely.
BRO THANK YOU VERY MUCH FOR THIS HELPFUL TUTORIAL, YOU ARE A GENIUS, I HAVE BEEN TRYING TO FIND THIS EXACT SOLUTION TO SETUP A BACKUP ON MY STEP FATHER'S WORK PC FOR HIS IMPORTANT WORK FOLDERS OF DATA TO BE AUTO-COPIED DAILY FROM DRIVE C:\ TO DRIVE D:\ AND THIS IS EXACTLY WHAT HE NEEDS.
If I am not mistaken, you need password for the first time only. After that you don't need password to get access to the share folder or network place. So ask your admin to get access to the share folder.
@@SirChogyal If I access to share folder with password and the backup will done and after backup complete share folder password is cutoff how to write code
That's how the windows' file system works, since you're telling it to copy it will copy or add copy to the end of the file if a file with the same name exists on the destination folder. Copy folder or Drag from source to destination folder to replace a folder will only copy/replace or add the contents from the source folder inside the destination folder. You'd have to set another batch or edit the existing file to delete whatever is in the destination folder and then copy and paste whatever is in the source folder. Source: Me and my years with windows.
Thank you SO much, I didn't want to deal with complicated 3rd-party programs which backs up files into proprietary formats. This is exactly what I was looking to do.
I'm glad to hear. Thanks 👍 dude!
Part two: ruclips.net/video/rqRM46n73Ms/видео.html
Part three: ruclips.net/video/93uVY6atjtc/видео.html
This is exactly what I needed!
Simple, fast, effective!
Thank you very much!
Glad to hear!
Help me bro
Thanks for this, but when we are copying backup file on daily basis the name of the backup file will be same everyday so when this script will run it will over write the previous file, is there any solution for this?
It will be only overwritten if there are any changes in the files with the same names. Don't worry the modified files with the same names will be updated automatically.
Man I wish i would have found your video 2 years ago LOL thank you very much, you have just unlocked my world
Glad I could help!
Thanks for sharing this...can we move one unique File name to another folder. For example A pdf name is XYZ, it should move to ABC folder automatically . Can you help.
You mean only one pdf file or all the pdf files from a folder to another folder by leaving other files uncopied?
Great Instructor, Big thanks to you Sir, From Philippines.
Thanks for appreciating.
Can you give us idea on how to put a filename with date ? And compressed o zip file?
Wow Sir you are totally awesome. Love from India.
Thank you so much ❤
@@SirChogyal I had completed forgotten we could use task scheduler and DOS commands for this work. Thank again.
Hi. Thats great. But will the files get updated if we make any changes inside the document?
Definitely, the files will update the same in the destination folder even if you make a small changes.
Sir, Thank you very much for this video. I have a question ? I back up a particular folder from pc to pen drive. I want, when I connect the pen drive to pc it will automatically backup those folder every time. Is it possible? Or run the .bat file every times?
In the Task Scheduler ( Triggers' part), choose Daily from the Settings. Then go down to the Advanced settings and check Repeat task every: 1 minute for a duration of 1 day
Note: we cannot go below 1 minute.
Hope this helps you.
@@SirChogyal Thank you sir for your reply. in my pc show only repeat task every : 5 minute. there is no option for 1 minute.
You can type it manually.
amazing work Mr Chogyal. I am wondering, if you set up daily back ups, what happens to old files? does it keep them or overwrite?
It will not be overwritten unless you modify or make some changes in the old files.
Thanks for sharing this detailed steps. Much appreciated.
My pleasure!
Perfect explanation. this is what I was searching for since a long time. is there a way to automatically eject my external hard disk after the backup is complete? Just to prevent any virus attack to my external drive.
Thanks a lot. I couldn't find how it is automatically being ejected. Hopefully if we know this, we can set to the auto ejection after the backup is done.
@@SirChogyal Thank you Sir.
Thanks Sir, this was just what I was looking for. I am so glad I don't have to use any additional third party proprietary software. Subscribed.
You're welcome!👍
Thanks, you solved a lot of problems, Please make a Video of how can I save files on two hard disks simultaneously
Watch part two & three to learn more. Part 2: ruclips.net/video/rqRM46n73Ms/видео.html Part 3: ruclips.net/video/93uVY6atjtc/видео.html
Is there any way to make the CMD bat file run in the background hidden. Thanks
If I know in future, definitely I will share with you.
Good question
This is simply Brilliant! I work in a graphics department. I make an Adobe Illustrator file and then save a .pdf as a proof in the same folder. Sometimes I have over 100 folders with these types of files. So, each folder will contain 1. an Illustrator file and 2. a .pdf file. How can I make a copy of the .pdf file so that it gets copied into the main _PROOF folder? Every time a proof gets approved, I have to copy the .pdf file and paste it into the _PROOF folder manually. Too much work! And sometimes I forget to do it. Any assistance would be greatly appreciated, Guru. Thank you!
You mean your all the PDF files go to multiple folders?
Excellent. Thank you!
Wow, you timed that 3 : 27 mark perfectly.
Glad to hear!
backup works thanks, but what about sync? need the files in destination folder to be autodeleted when deleted in source too
Right now, I am making part two. In part three, your problem can solved 100%.
Part three: ruclips.net/video/93uVY6atjtc/видео.html
I am a freelancer and I have to backup projects at realtime from one SSD to Another SSD because of securing files. Can I backup in a different SSD ?
Yes, definitely. Get more information from the part 2 and part 3 of this video.
Brother in your end of the script what does /Y/J/H and other alphabets mean?
Refer part 3 @ ruclips.net/video/93uVY6atjtc/видео.html
I have explained each parameter.
For Android
how to automate copy of files from one folder to another at a specific time daily/weekly
is it gonna replace the existing file??
I need a script that will show backup file in different time period
Yes, it will replace or update all the existing files. For the different time periods, go to your Task Scheduler Library and choose your task name. Go to triggers and click on Edit. There you can select On time, Daily, Weekly and Monthly.
Thanks for the reply.
How can update only edit files by autorun? we don't want to do other folders and files?
My data is 90 GB, and every time is not possible to copy by autorun, so we want to do only edit file of folder update
If you edit files in the source folder, the same can be replaced in the destination folder by autorun. However, you have to change the code a little bit.
Excellent! Exactly what I was looking for
🙂💚💖👍🙏
Really helped me on the network backup. I need bit more help, please let me know how can we cut and paste the date from Source to desitnation folder.. will be waiting for your response..Appricaite for your help in advance..Thanks alot
Please refer part three: ruclips.net/video/93uVY6atjtc/видео.html
Can I do this on a shared folder?
or map network drive
Yes you can.
If I delete a file from source folder the same file does not deleted from the destination folder. Any help please?
Hoping for the solution. Right now, the only option I have is to do it manually.
@@SirChogyal OK.I hope you will find it. Thanks a lot........
Sir, one think that I doubt about if I want to let that task run many times in one day should I create many new task in task scheduler? But I think this is not an efficient way, if I want it to run at every 10minutes, hope to get your advise soon
Have you tried it Chun?
Refer part two.
sir i have problem because i have a main folder and i have 6 other folders in main folder and every folder is deferent of each others in internal hard drive and not using external memory and i want to auto update all these folders please sir help me
It doesn't matter whether it is an external or internal drive. It will work the same. If you have subfolders in the source folder, all the subfolders can be also backup to the destination folder.
@@SirChogyal sir i have tried many time but i cant success plz help me
would this work even if on the time of trigger you are not log in as admin?
the situation is like this.
we have 2 user account. admin and sales representative.
the destination folder is an admin folder inside the user folder (onedrive to be exact).
but the one who is logon currently when the trigger time came is the sales representative who clearly have no access to admin folders.
would the xcopy execute and do it's job even if the user have no access to the destination folder?
coz I'm trying to secure backup files in a daily basis.
I do hope it will work but you have to run the batch file from the user account and make sure you check "Run with the highest privileges" in the task scheduler part. Also, check part 2 and part 3 of this video for more information. Thanks!
thank you, i need to try this
Plz try. It's simple but very important.
Hello. Does it automatically overwrite the files in the folder?
It will not overwrite. Any new files in the Source folder will be copied to Destination Folder. Your old files in the destination folder won't be affected.
@@SirChogyal what if I update the excel file in the source folder. Will the same file in destination folder updates too? Or will it create another copy of that file?
Very good question. I thought that I should give you another code but fortunately this works. Go ahead friend. Any changes in your excel document will affect accordingly.
Should it erase old files on destination and make updated backup ?
If the file names in the source folder and destination folder are matching , the old files in the destination folder will be replaced from the source folder upon backup. However, if the files are not altered or updated in the source folder, such files will not copy or update to the destination folder- (even if the file names are matching).
PS: New files will be updated.
Thanks a lot brother, you're a saviour
😊
Sir one doubt delete any one file to source folder that reflects to designation (backup) folder
Refer part 3: ruclips.net/video/93uVY6atjtc/видео.html
sir can we provide destination in android device folder, will it make backups
No, this will not work in android.
Hi sir, I want to ask you something…
How to make a copy and paste method “modified” and “created” a duplication if when I work a fix create from save file modified date
You mean you want to have two files (modified & created) in the destination folder?
@@SirChogyal yeah right
It will be modified any files in the destination if you make any changes to the source files. However, it seems that we cannot create duplications. You may manage your created files in a separate backup.
Thanks for this video, can you do something more advance with more options for example? this update the files if you do any change but has the same name? imagine we have a file named: picture1.jpg (5kb) but you did changes and now is picture1.jpg (6kb) will it recognize and update the destination folder?
Yes, it will update the file sizes. If you make any changes to the file sizes at the Source Folder, your all the existing files at the Destination Folder with the same names will be overwritten.
@@SirChogyal thanks a lot ,🙂
My pleasure.
@@SirChogyal Can the date modified appear?
Yea. Refer Part three: ruclips.net/video/93uVY6atjtc/видео.html
Nice, Thank you sir.
My pleasure.
Thank you, straight to the point!
My pleasure!
Help me bro
Can you do incremental backups with the way?
I have no knowledge about the incremental backup. However, after referring the definition of Incremental Backup, I feel the backup method shown in this video is similar to the incremental backup since it copies only the files which are altered in the source folder.
@@SirChogyal Thx for the response mate. I rarely get that and I appreciate the effort. So I guess my question would be better framed if I say: If you delete something in the source after backing up, the next time to back up again the target platform will not be updated for that object being deleted, right? Meaning you can only add on to the target, but not update or delete from the target. Right?
If you delete from the source folder after your backup, it will NOT affect the same in the destination folder.
Thank you very much for this.
💖💖💖🙂
if source item is deleted is it still in backup folder?
Yap, definitely. Even if you delete some files from the source folder, your all the files in your destination folder will remain undeleted.
@@SirChogyal How to delete the file as well as the source folder automatically in the backup folder?
@@SirChogyal What to do if some file is deleted from the source folder, then i want that file to be deleted from the destination folder too? pls help asap.
You can clear your Source Folder at any time you like. Destination Folder won't be effect.
Can this work in both directions? By setting up two .bat files and inverting the folder names?
xcopy "PATH OF THE SOURCE FOLDER" "PATH OF THE DESTINATION FOLDER" /Y /E /D /C /F /H /I /Z /J /S /K /R
xcopy "PATH OF THE DESTINATION FOLDER" "PATH OF THE SOURCE FOLDER" /Y /E /D /C /F /H /I /Z /J /S /K /R
Seems so but you don't have to do this way. Refer part 2 & 3 for more information.
Sir how about to backup modified, and setting it to backup daily. how?
Even if you modify your files, they will be updated in your backup folder. Refer to Part 2 and 3 of this video for more information.
I want to create a folder according to the next two words and transfer the file into it automatically and if there is another file in it, then read the next two letters and create a folder text according to that, then the transfer will be done automatically. I want to learn this.
Do you mean to create another file in each backup without overwriting the previous file?
Thanks it's working 🙂
You are most welcome.
Hello would you happen to have the name of the script that will replace the or overwrite the previous items ?
Yes, it will overwrite the previous items.
IS IT WORK ON NETWORK FOLDER TO AND CAN YOU RIGHT THE COMMAND HERE
Yes it will work. You need to copy the path of your folder in your network and replace with PATH OF THE DESTINATION FOLDER to the command below.
xcopy "PATH OF THE SOURCE FOLDER" "PATH OF THE DESTINATION FOLDER" /Y /E /D /C /F /H /I /Z /J
Hi, how to create one more automatic backup as it work one only?
You can create another or more bat files and task schedulers. Thanks. Any problem, please tell me here again.
@@SirChogyal Hi, I did tried it but it works on second one and it doesn't work on the first one anymore.
Go to Triggers tab. Click New. Go down to Advanced Settings. Check Repeat task every. Type 1 hour or 3 minutes or 5 minutes or any time gap you want. At the right side (for a duration of), choose indefinitely.
Good Sir i want to backup destination my nas server drive how do it ? but very nice video keep it up
You can apply the same method shown in this video.
@@SirChogyal okay Working Thank you
Hey that is fantastic, today i learn a very good and useful thing for me from you , I am very thankful to you for making such a nice video.👌👌👌👌👌
Thank you so much.
Hey do you know how to delete the recycle bin on a external hard drive
Check out Auto deleting recycle bin: ruclips.net/video/1j2hSk_f1_Y/видео.html
nice. what about another task to delete older backups so it doesn't fill up disk space.
Please refer Part three: ruclips.net/video/93uVY6atjtc/видео.html
Thank you Really I need it
Glad to hear. Thanks!
Perfect!
Thanks!
Why date on files are backup not shown
Hopefully, it will be shown if you right click on the file and see the details.
thank you very much
You are welcome
Can we select more than one source
Please tell me it's urgent
Yes, sure. Please watch part three and part four for more information.
great thank but how we can copy to folder and and rename it to date of day daily
Do you mean to rename the files in the destination folder after after copying?
Wow thank you!
My Pleasure.
Is there a way to make this automatically delete files from the destination folder that were deleted from the source folder?
Frankly speaking, right now the only way I know is do it manually. If I know the coding in future, definitely I will share with you.
@@SirChogyal Ok. Thank you.
@Phillip Henderson help me bro
thnk... love from india
My pleasure bro.
can this work for copy data throw lan??
I am pretty sure it will work. Plez go ahead.
Thank you sir
You are most welcome.
👌👌👌Amazing...
Thank you! Cheers!
sir can i make a folders as same name ?
Yes you can. If you face any problem, plz do let me know.
Thank you.
You're welcome!
BRO THANK YOU VERY MUCH FOR THIS HELPFUL TUTORIAL, YOU ARE A GENIUS, I HAVE BEEN TRYING TO FIND THIS EXACT SOLUTION TO SETUP A BACKUP ON MY STEP FATHER'S WORK PC FOR HIS IMPORTANT WORK FOLDERS OF DATA TO BE AUTO-COPIED DAILY FROM DRIVE C:\ TO DRIVE D:\ AND THIS IS EXACTLY WHAT HE NEEDS.
Ok bro. Thanks for your appreciation.
Hello, what does this do /Y /E /D /C /F /H /I /Z /J?
Learn more at docs.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy
good job
Thank you! Cheers!👍
Thanks bro
Any time
Nice
Thanks a lot. This comment surely worth a lot for my small channel.
how i do with share folder it is password please help to find the solution
If I am not mistaken, you need password for the first time only. After that you don't need password to get access to the share folder or network place. So ask your admin to get access to the share folder.
@@SirChogyal If I access to share folder with password and the backup will done and after backup complete share folder password is cutoff how to write code
how to backup over network
I think it should be working with the method shown in this video.
how you create test?
Just save as bat file. The code has given link in the description. Any problem, please do let me know.
noice 👍👍😊😊
😊😊😊 Thanks!
Thank you very much.
its working perfect, which i want.
i feel an extra option, alert email / whatsapp after successful task done.
Glad it helped 👍
If i delete a file from source folder the same does not get deleted from the destination folder. Any solution for this?
That's how the windows' file system works, since you're telling it to copy it will copy or add copy to the end of the file if a file with the same name exists on the destination folder. Copy folder or Drag from source to destination folder to replace a folder will only copy/replace or add the contents from the source folder inside the destination folder. You'd have to set another batch or edit the existing file to delete whatever is in the destination folder and then copy and paste whatever is in the source folder.
Source: Me and my years with windows.
Thank You,
You are welcome!