Create your own sync script with Powershell

You may be searching for your own script for synchronizing your files. Specially if you are backing up big data and big amount of files, that you may need to just sync the updated or new files.

In order to achieve your goal, you need a software or you can use freeware, or you need tiny small script for just do the needed job. So powershell is your tool.

let’s assume Source folder is 聽c:\source and and Target folder is D:\target

  1. open powershell ISE (in order to save the file for later use) and write:
  2. robocopy /e /w:20 /r:2 C:\source聽D:\target /MIR
  3. use the /MIR in order to mirror the 2 locations so the extra files in the target will be deleted, id you don’t need you can remove it
  4. /r:2 2 is the number of retries if the file is being used.
  5. /w:30 30 seconds is the number of waiting time between each retry if the file is being used

80 thoughts on “Create your own sync script with Powershell”

  1. I am no longer certain the place you are getting your information,
    however good topic. I must spend some time studying much more or figuring out more.
    Thank you for excellent info I used to be searching for this info for my mission.

    1. Many thanks for the comment. I write like these topics when i face a problem during my daily work and i need a tool or anything to help me facilitate my job. i hope you enjoyed and stay tuned for more…

  2. Thank you for the auspicious writeup. It in reality used to be a
    enjoyment account it. Glance advanced to far introduced agreeable from you!
    However, how can we keep up a correspondence?

  3. Greetings! Extremely helpful advice in this post!

    It’s the little changes that will make the most important changes.
    Thanks a good deal for sharing!

  4. Heya great blog! Does running a blog similar to this
    require a lot of work? I’ve absolutely no understanding
    of programming however I was hoping to start my own blog soon.
    Anyway, should you have any suggestions or tips for new blog owners please
    share. I know this is off subject however I simply had to
    ask. Thanks!

    1. you can start with little knowledge in wordpress. you can open account in wordpress and there is a lot of tutorials

  5. It’s very straightforward to find out any matter on web as compared to
    books, when i found this paragraph at this
    particular website.

  6. I’m really impressed along with your writing skills as well
    as with all the layout on your blog. Is that this a paid theme or would you customize it yourself?
    Anyway continue the nice quality writing, it can be rare to view a nice
    blog this way one nowadays.

  7. I see you don’t monetize your website, i know how to earn some additional money and get more visitors using
    one simple method, just search in google for: money making ideas by Loocijano

  8. This is the perfect website for anybody who hopes to understand this topic.
    You know a whole lot its almost hard to argue with you
    (not that I actually will need toHaHa). You certainly put a brand new spin on a subject that has been written about for years.
    Great stuff, just great!

  9. Howdy! This is my first visit to your blog site!
    Our company is a collection of volunteers and starting
    a whole new initiative in the community inside the same niche.
    Your website provided us beneficial information to function on.
    You have done a marvellous job!

  10. I am just curious to determine what blog system you’re utilizing?
    I’m having some minor security problems with my latest blog and I’d prefer to find something
    more secure. Do you possess any recommendations?

  11. Hello! Quick question that’s entirely off topic. Do you know how you can make your web site mobile friendly?
    My blog looks weird when browsing from my
    iphone. I’m trying to find a template or plugin that could possibly fix this issue.

    If you have any recommendations, please share. Appreciate it!

  12. Incredible! This web site looks exactly like my old one!

    It’s with a totally different topic but it really has just about the same layout
    and design. Outstanding selection of colors!

  13. I would like to many thanks for the efforts you’ve devote penning
    this site. I really hope to look at the identical high-grade content by you later on as well.

    Actually, your creative writing abilities has encouraged me to acquire my
    own blog now 馃槈

  14. I usually do not even be aware of way I ended up here, however I figured
    this post used to be great. I don’t recognize who you might be but certainly you
    are seeing a well-known blogger if you aren’t already.
    Cheers!

  15. Los congeladores AEG creados con las maximas prestaciones y total facilidad de uso para la correcta congelacion de alimentos. Lavadoras Fagor Error F1.

  16. These are typically the truth is impressive ideas in about blogging.
    You possess touched some pleasant things here. Any manner keep up wrinting.

  17. Wonderful article! That is certainly the type of information that are meant
    to be shared throughout the web. Disgrace on the seek engines for not any
    longer positioning this publish higher! Occur over and speak with my
    internet site . Thanks a lot =)

  18. What’s Going on i’m a new comer to this, I discovered this I’ve found It absolutely useful
    and it has aided me out loads. I really hope to contribute
    & help different users like its helped me. Great job.

  19. That is a great tip particularly to individuals fresh to the blogosphere.
    Simple but very accurate information Be grateful for sharing this.
    Absolutely essential read post!

  20. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment
    is added I get several e-mails with the same comment.

    Is there any way you can remove people from that service?
    Bless you!

  21. Hi there this is kinda of off topic but I was wanting to know if
    blogs use WYSIWYG editors or if you have to manually code
    with HTML. I’m starting a blog soon but have no coding know-how so I wanted to get guidance from someone with experience.
    Any help would be greatly appreciated!

  22. Greetings! Beneficial advice in this particular article!
    It’s the little changes which will make the greatest changes.
    Thanks a great deal for sharing!

  23. It’s appropriate time for you to earn some plans for future years and it is actually time and energy to
    be happy. I have read this post and if I was able to I wish to suggest you
    few interesting things or suggestions. Perhaps you could write
    next articles making reference to this short article.
    I would like to read more reasons for having it!

  24. After looking at a handful of the articles on the website, I honestly such as
    your means of blogging. I book-marked it to my bookmark website list and you will
    be checking back soon. Check out my website too and inform
    me your opinion.

  25. Thanks for every other wonderful post. The place else could anyone get that kind of information in such an ideal means
    of writing? I have a presentation subsequent week, and I’m at the look for such info.

  26. Thanks for the marvelous posting! I actually enjoyed
    reading it, you will be an excellent author.I am going to be
    sure you bookmark your blog and certainly will return from
    now on. I want to encourage you continue your great posts, have a
    nice evening!

  27. Great work! This is certainly the kind of
    information that should be shared all over the web.
    Shame on the seek engines for not any longer positioning
    this create upper! Come on over and seek advice from
    my web site . Thanks =)

  28. Howdy! This is my 1st comment here so I just wanted to give a quick shout out and tell
    you I truly enjoy reading through your blog posts.
    Can you recommend any other blogs/websites/forums that
    go over the same topics? Thanks a ton!

  29. Hi are using WordPress for your site platform? I’m new to the blog
    world but I’m trying to get started and create my own. Do you
    require any html coding expertise to make your own blog?
    Any help would be greatly appreciated!

  30. I’m impressed, We have to admit. Seldom will i encounter a
    blog that’s both equally educative and interesting, and without a doubt,
    you’ve hit the nail about the head. The problem is
    something too few women and men are speaking intelligently about.
    Now i’m very happy I found this during my look for something in relation to this.

  31. Nice post. I learn something new and challenging on blogs I stumbleupon everyday.
    It’s always interesting to read articles from other writers and practice a little something from their
    websites.

  32. Thanks for one’s marvelous posting! I seriously enjoyed reading
    it, you can be an excellent author.I am going to
    ensure that you bookmark your blog site and can often revisit from now on. I want to encourage you to continue your great writing,
    possess a nice morning!

  33. I actually have been browsing online more than three hours lately, but I never found any attention-grabbing article like yours.
    It can be beautiful price enough in my opinion. Inside my view,
    if all webmasters and bloggers made good content material as
    you probably did, the internet will probably be much more useful than ever before.

  34. I realize this web site gives quality dependent posts and
    other information, can there be almost every other site which presents these kinds of things in quality?

  35. Hello just wanted to offer you a simple heads up. The text in your post appear to be running
    from the screen in Safari. I’m uncertain if this is a format issue
    or something connected to browser compatibility however i thought I’d post to inform
    you. The style and design look wonderful though! I do
    hope you obtain the issue solved soon. Cheers

  36. Hi are using WordPress for your blog platform?

    I’m new to the blog world but I’m trying to get started and set up my own. Do you need any coding knowledge to make
    your own blog? Any help would be really appreciated!

  37. Hello There. I came across your blog the utilization of msn. Which is a very
    well written article. I will make certain to bookmark it and return to read more of your own helpful information.
    Thank you to the post. I am going to definitely return.

  38. My spouse and I absolutely love your blog and find the majority of your post’s to
    be just what I’m looking for. Do you offer guest writers to write content for you personally?
    I wouldn’t mind writing a post or elaborating on a
    few of the subjects you write concerning here. Again, awesome web site!

  39. I actually have been browsing online greater than 3 hours nowadays,
    but I by no means discovered any fascinating article like yours.
    It is beautiful worth sufficient for me personally.
    Personally, if all webmasters and bloggers made excellent written content
    as you did, the net might be a lot more helpful than previously.

  40. Thanks on the marvelous posting! I definitely enjoyed reading it, you might be a fantastic author.I am going to ensure that I bookmark your
    website and can often keep coming back sometime soon. I would
    like to encourage a person to continue your great writing, have a nice afternoon!

  41. Hi my name is Tami Sandoval and I just wanted to drop you a quick note here instead of calling you. I discovered your Create your own sync script with Powershell – RAGHED EDRIS BLOG website and noticed you could have a lot more hits. I have found that the key to running a successful website is making sure the visitors you are getting are interested in your website topic. There is a company that you can get keyword targeted visitors from and they let you try their service for free for 7 days. I managed to get over 300 targeted visitors to day to my site. http://soheavyblog.com/1m

  42. I am reaching out since we saw a link to your website and thought you would be a good candidate for our traffic service. We provide targeted website traffic to virtually any type of website. We target our visitors by both country and keywords that you either submit to us or we can do keyword research for you. We offer a seven day FREE trial period with free traffic so that you can try our service to make sure it will work for you. Which of your websites needs the most growth? Find out more here:http://priscilarodrigues.com.br/url/v Unsubscribe here: http://corta.co/f5m

  43. I came to your Create your own sync script with Powershell – RAGHED EDRIS BLOG page and noticed you could have a lot more traffic. I have found that the key to running a website is making sure the visitors you are getting are interested in your subject matter. We can send you targeted traffic and we let you try it for free. Get over 1,000 targeted visitors per day to your website. Check it out here: http://0nulu.com/opx Unsubscribe here: http://0nulu.com/mvx

  44. This is a message to the Create your own sync script with Powershell – RAGHED EDRIS BLOG webmaster. Your website is missing out on at least 300 visitors per day. Our traffic system will dramatically increase your traffic to your site: http://insl.co/m – We offer 500 free targeted visitors during our free trial period and we offer up to 30,000 targeted visitors per month. Hope this helps 馃檪 Unsubscribe here: http://gd.is/y/mun53

  45. This is a comment to the Create your own sync script with Powershell – RAGHED EDRIS BLOG webmaster. Your website is missing out on at least 300 visitors per day. Our traffic system will dramatically increase your traffic to your site: http://priscilarodrigues.com.br/url/v – We offer 500 free targeted visitors during our free trial period and we offer up to 30,000 targeted visitors per month. Hope this helps 馃檪 Unsubscribe here: http://gd.is/y/mun53

  46. I came across your Create your own sync script with Powershell – RAGHED EDRIS BLOG website and wanted to let you know that we have decided to open our POWERFUL and PRIVATE website traffic system to the public for a limited time! You can sign up for our targeted traffic network with a free trial as we make this offer available again. If you need targeted traffic that is interested in your subject matter or products start your free trial today: http://xahl.de/p Unsubscribe here: http://stpicks.com/2ruse

  47. 釒砲en some one searches for his re詻uired t一ing, so he/s一e wishes
    to be available that in detail, thus that t一ing i褧 maintained 慰ver here.

Comments are closed.

Scroll to Top