Results 1 to 13 of 13

Thread: Robocopy script

  1. #1
    Join Date
    13th December 2008 - 18:22
    Bike
    Your mom
    Location
    Christchurch
    Posts
    3,901

    Robocopy script

    I'm getting an access denied error on the destination drive. Here is my script: robocopy f:\ h:\ /mir /mt /xd f:\"system volume information" h:\$recycle.bin



    Excluding that directory hasn't seemed to help.

  2. #2
    Join Date
    31st March 2005 - 02:18
    Bike
    CB919, 1090R, R1200GSA
    Location
    East Aucks
    Posts
    10,432
    Blog Entries
    140
    Haven't used robocopy, but used similar stuff.

    Are you sure you have the sysvol syntax right? Often those programs understand 8.3 format.

    Assuming you're writing a backup script or similar, the destination is a trivial directory compared to the original. Most problems on that are about access and permissions to destination, rather than the program itself...
    Quote Originally Posted by Jane Omorogbe from UK MSN on the KTM990SM
    It's barking mad and if it doesn't turn you into a complete loon within half an hour of cocking a leg over the lofty 875mm seat height, I'll eat my Arai.

  3. #3
    Join Date
    13th December 2008 - 18:22
    Bike
    Your mom
    Location
    Christchurch
    Posts
    3,901
    Quote Originally Posted by Gremlin View Post
    Haven't used robocopy, but used similar stuff.

    Are you sure you have the sysvol syntax right? Often those programs understand 8.3 format.

    Assuming you're writing a backup script or similar, the destination is a trivial directory compared to the original. Most problems on that are about access and permissions to destination, rather than the program itself...
    robocopy [[ ...]] []

    I've tried all sorts of combinations, including only the directories that I want to copy, yet the problem persists.

  4. #4
    Join Date
    2nd December 2009 - 13:51
    Bike
    A brmm, brmm one
    Location
    Upper-Upper Hutt
    Posts
    2,153
    Just install Linux this ones supposed to be alright
    Science Is But An Organized System Of Ignorance
    "Pornography: The thing with billions of views that nobody watches" - WhiteManBehindADesk

  5. #5
    Join Date
    19th July 2007 - 20:05
    Bike
    750 auw
    Location
    Mianus
    Posts
    2,247
    Have you rtfm?

  6. #6
    Join Date
    13th December 2008 - 18:22
    Bike
    Your mom
    Location
    Christchurch
    Posts
    3,901
    Quote Originally Posted by Scuba_Steve View Post
    Just install Linux this ones supposed to be alright
    Fuck Mint, I've had far too many problems with it. It seems to work for a few days or a few weeks then it won't boot. I don't have that issue with other Debian based distros such as Lubuntu.

  7. #7
    Join Date
    30th June 2011 - 14:30
    Bike
    2007 Triumph Tiger 1050
    Location
    Pokeno, New Zealand
    Posts
    1,144
    Blog Entries
    2
    why have you got:

    f:"system - quotes should be closed, no? (or is not supposed to be there)

    (also.. rsync..)
    "If a million people say a foolish thing, it is still a foolish thing." - Anatole France
    "An education isn't how much you have committed to memory, or even how much you know. It's being able to differentiate between what you know and what you don't." - Anatole France
    ZRXOA #9170

  8. #8
    Join Date
    13th December 2008 - 18:22
    Bike
    Your mom
    Location
    Christchurch
    Posts
    3,901
    I finally got this fucker to work properly with no errors:

    robocopy f:\ h:\ /mir /mt /xd "f:\system volume information" "f:\$recycle.bin" "h:\$recycle.bin"

    Thanks everyone.

  9. #9
    Join Date
    6th May 2012 - 10:41
    Bike
    invisibike
    Location
    pulling a sick mono
    Posts
    6,057
    Blog Entries
    4
    i see where you're going wrong. it starts with C:\Windows....

    >sudo -i
    >dd if=/dev/(F: ) of= /dev/(h: )

  10. #10
    Join Date
    31st March 2005 - 02:18
    Bike
    CB919, 1090R, R1200GSA
    Location
    East Aucks
    Posts
    10,432
    Blog Entries
    140
    Told ya to check the sysvol syntax.

    Rsync... or I've grown even more lazy and Beyond Compare does a good job...
    Quote Originally Posted by Jane Omorogbe from UK MSN on the KTM990SM
    It's barking mad and if it doesn't turn you into a complete loon within half an hour of cocking a leg over the lofty 875mm seat height, I'll eat my Arai.

  11. #11
    Join Date
    13th December 2008 - 18:22
    Bike
    Your mom
    Location
    Christchurch
    Posts
    3,901
    Quote Originally Posted by Akzle View Post
    i see where you're going wrong. it starts with C:\Windows....

    >sudo -i
    >dd if=/dev/(F: ) of= /dev/(h: )
    The one you really want is: sudo rm -R / --no-preserve-root

    That command adds heaps of lulz to your day.

    PS. I'll try your ideas AFTER making a VMWare snapshot just in case you're trying to score some lulz at my expense.

  12. #12
    Join Date
    19th July 2007 - 20:05
    Bike
    750 auw
    Location
    Mianus
    Posts
    2,247
    Why the fuck are you sending stuff to the recycle bin for? Either you want to delete that shit or you don't!

  13. #13
    Join Date
    13th December 2008 - 18:22
    Bike
    Your mom
    Location
    Christchurch
    Posts
    3,901
    Quote Originally Posted by Usarka View Post
    Why the fuck are you sending stuff to the recycle bin for? Either you want to delete that shit or you don't!
    Fuck knows, I can't see that folder even when I enabled the "show hidden folders" option. It's all sorted now though so next time I'll know how to do it properly.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •