Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fecking Vista & Permissions
#1
So. I bought a NAS drive to (mostly) keep a backup of the lappy. All going great, apart from a few folders won't copy across using SyncToy2.1

Looks like a permissions thing (80070005), and the folders do have read only access on them - thing is, I can't take that read only attribute off! I go through the motions, Vista does the same, but when I look back at the permissions again, the read only attr is till there.

Anybody have any ideas as to how I can make Vista do as its told? I'm logged in as admin, and I've tried running winders explorer as admin as well. makes no difference! Help!
Reply
#2
You can set the folder permissions in a command prompt window using the attrib command this usually takes prescident over any windows settings, though I'd not reccomend it for Windows system files & folders.

ATTRIB -R C:\foldername /S /D

The -R removes the read only flag on the folder, the /S forces the action on files within the folder and subfolder, the /D processes all folders as well.

If you need to clear the SYSTEM and / or HIDDEN attributes just include -S and / or -H in the command line next to the -R.

If you type in ATTRIB /? at the command prompt then you'll get a list of the relevent options and format.

Hope that helps
Reply
#3
Cheers Pie, hasn't helped though - it says it does it, but as soon as I check, its same as before.

I own the files (as in I'm the Vista "Owner" of them), why the feck can't I change the permissions, grr. What makes it even wierder, if I try and manually copy the files over, it does it no problem, but Synctoy fails. Poxy bloody windows
Reply
#4
I use robocopy (Robust Copy) to backup to my external drive, it's included with vista so you cold give it a try and see if it works any better. It's a command line tool so you'l need to create a batch file to run it (rename a text file to .bat instead of .txt) and keep it on the root of your backup drive so you can run it whenever or schedule a regular task in windows if your NAS drive is always available. It's a direct copy so you dont have to use any software to restore files the tradeoff is that the files arn't compressed. The second time you run it, it will just backup the new files / folders or those that have changed rather than copying everything again.

Robocopy C:\ E:\RoboBackup /E /Z /R:2 /W:2 /LOG:E:\RoboBackup\log.txt /TEE

This will copy the contents of drive C:\ to a RoboBackup folder on drive E:\. The /E switch tells it that you want to copy everything including empty folders, the /Z switch is important if your storage is connected to the network (NAS) rather than USB or E-SATA, the /R:2 and /W:2 switches specify the number of times robocopy should try to read or write a file before passing on to the next one (in this case two times), the /LOG switch is the location that the event log should be created (lists files not copied etc) in this case a log.txt file in the directory where our backups live, the /TEE switch shows the results on-screen as well as in the log file. I have 3 logical drives where I store my documents, music and photos so I have 3 seperate lines in my batch file one for each drive and pointing do a different destination folder for each one.

Have a look here for more options but the above should work fine if you amend the relevent drives and folders - http://ss64.com/nt/robocopy.html
Reply
#5
cheers, will look into that...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)