Re: [BackupPC-users] windows/scripts
2013-01-15 21:15:42
elrich wrote at about 08:38:40 -0800 on Tuesday, January 15, 2013:
> "he problem (likely) is that ssh logs in as the SYSTEM (or equivalent)
> user that doesn't have permission to run vss.exe. I get around that by
> using a recursion script to escalate privileges via 'at'. I imagine
> perhaps that winexe allows for direct launching of vss.ex. "
>
> I created a windows user named backupPC who is in the administrator group
> and the ssh logs me as backupPC.
>
> My teach wants us to use cygwin or some equivalent software, guess I'll have
> to use cygwin.
>
> I'm kinda stuck right now.
>
> I installed cygwin on my windows server. When using cygwin I'm atomatically
> logged in as backupPC (backupPC@serverName), which means that I'll appear as
> cyg_server which is a memeber of administrators.
Just because cyg_server is a member of administrators does not mean
that ssh login has that capability. You can try it yourself... try to
launch VSS from within a (remote) ssh shell login.
>
> On my backupserver I tried to open an ssh tunel by doing this :
> -log in as bakuppc user
> - created rsa key in ~/.ssh/
> - cat ~/.ssh/id_rsa.pub | ssh backupPC@windows_server_ip "cd .ssh && cat -
> >> ~/.ssh/authorized_keys"
> - I then do a ssh manually : ssh bakcupPC@windows_server_ip
> - I do this once again and I don't have to put in my password which means
> that the tunnel works right?
>
> to be sure I tried a ssh -l backupPC@windows_server_ip which sais I was the
> user cyg_serv i think (though I log in as backupPC i guess it is normal to
> be loged in as cyg_serv since it is th user dealing with the ssh bridge?)
>
> Yet when I try to backup my windows server I always get two errors depending
> on my modifications :
> -> Got fatal error during xfer (Unable to read 4 bytes)
> or :
> -> Got fatal error during xfer (fileListReceive failed)
>
> here's my configuration :
> XFerMethod : rsync
> RsyncShareName : /sygdrive/c/xdx (<--just to do my tests)
> RsyncClientPath : /usr/bin/rsync (<= I must be wrong but I didn't find a
> rsync.exe on my windows, just a something/bash_completion.d/rsync)
> RsyncClientCmd : $sshPath -q -x -l backupPC $host $rsyncPath $argList+
> RsyncClientRestoreCmd : $sshPath -q -x -l backupPC $host $rsyncPath $argList+
>
> NmbLookupCmd : $nmbLookupPath -A $host
>
> My error change if I modify backupPC by backuppc in RsyncClientCmd (backupPC
> being a user on my windows server and backuppc being the one created
> automatically on my backup server)
>
> I'm sorry for my poor english
>
> Thank you once again for helping me!
>
> +----------------------------------------------------------------------
> |This was sent by elrich.edward AT gmail DOT com via Backup Central.
> |Forward SPAM to abuse AT backupcentral DOT com.
> +----------------------------------------------------------------------
>
>
>
> ------------------------------------------------------------------------------
> Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
> and more. Get SQL Server skills now (including 2012) with LearnDevNow -
> 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only - learn more at:
> http://p.sf.net/sfu/learnmore_122512
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users AT lists.sourceforge DOT net
> List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki: http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|