Koozali.org: home of the SME Server

affa - problem with connection?

Offline supafly1975

  • *
  • 15
  • +0/-0
affa - problem with connection?
« on: December 28, 2008, 06:04:49 PM »
Hey,

I am a newbie in Linux... :P And would like to have a regular backup of the documents on my C-drive (MSWindows Vista sadly enough) taken without extra needed software...

I created a backup job following the tutorial in
http://wiki.contribs.org/Backup_Windows_Computers_Using_Affa

When running the Affa-job, i get the following problems in de log  :lol: :

Sun Dec 28 14:32:33[9998]: Affa 1.0.0-3: Starting job backup scheduled (localhost)
Sun Dec 28 14:32:33[9998]: Description:
Sun Dec 28 14:32:33[9998]: Mounting //192.168.2.3/c$ to /mnt/backup
Sun Dec 28 14:32:33[9998]: Exec Cmd: /bin/mount -t cifs -o credentials=/root/.pwdfile.backup //192.168.2.3/c$ /mnt/backup
Sun Dec 28 14:32:33[9998]: Exec Out: mount error 13 = Permission denied :sad:
Sun Dec 28 14:32:33[9998]: Exec Out: Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Sun Dec 28 14:32:33[9998]: Exec Out: exitstatus=255
Sun Dec 28 14:32:33[9998]: Error 1549: Couldn't mount //192.168.2.3/c$ /mnt/backup
Sun Dec 28 14:32:33[9998]: Email sent to admin
Sun Dec 28 14:32:33[9998]: Exiting.

After checking this Forum, i allready understood that this would mean that it has something to do with the file containing logon data. This one is as following :

user=John Doe
pasword=blablabla001something

For this file is used my windows (!) logon data. Is this correct or should it be a SME-logon?
The logon of my MSWindoze has a space in the middle. Is this allowed?
Does the Vista Home Premium require extra settings to allow SSH on port 22?
Must the entire C-drive be 'shared' ?
Is the phrase to mount the C-drive of my MS to the /mnt/backup correct (//192.168.2.3/c$)?

What can cause this problem?


gr,
P.

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: affa - problem with connection?
« Reply #1 on: December 29, 2008, 03:37:17 PM »
If you have another windows computer available, try to mount the target share from windows - this will eliminate linux as a factor in the situation.

To mount the share from another windows system, click 'Start', 'Run', then enter the target share - \\192.168.2.3\c$.  You should get a pop-up dialogue asking for a username and password.

Since your target system is running Vista, you will encounter lots of obstructive new "security features" - you may need to customize your firewall settings (on the Vista system) before you can mount the root of the C: drive as you are trying to do.

If you can mount the target share from another Windows box using the username and password that are already contained in /root/.pwdfile.backup, then the problem may be the space in the user name.  If this is the problem, you either need to find out how to "escape" the space in /root/.pwdfile.backup, or you need to create a special "backup" user on the Vista box that does not have a space in the user name.

You may be able to "escape" the space in your existing user name by surrouding the username with quotes - user="John Doe" or by specifically escaping just the space with a backslash - user=John\ Doe (these are both guesses!).

Finally, Michael Weinberger (the guy that wrote affa) has included different instructions for backing up Windows box on the affa page itself: http://wiki.contribs.org/Affa#Backing_up_a_Windows_computer.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: affa - problem with connection?
« Reply #2 on: December 31, 2008, 05:45:44 AM »
By default Windows Vista does not share C$ any more. This may well be the cause of the problem.