I'm trying to backup my windows profiles onto my Debian server. I mounted the drive into the "Profiles" directory then used the command
Code: Select all
cp -R /profiles/* /video/zwindowsbackup/Grace/p/
The problem is the command can't seem to access the windows folders because of permission.
Code: Select all
'/profiles/Rickey' -> '/video/zwindowsbackup/Grace/p/Rickey'
cp: cannot access '/profiles/Rickey': Permission denied
Is it how I'm mounting the folder or is it in the cp command that I can override the windows permission so I can completely copy everything over. Is there a better way I should be trying this?
This is my fstab entry;
Code: Select all
//192.168.0.181/Profiles /profiles cifs username=******,password=********,sec=ntlmv2 0 0
ps... i'd like to copy them without any permissions so I can put all the files back in the profile folders once I upgrade the drives to SSD's. With a fresh install from xp64 to Win10.