I need to create a script that backups a couple of files on a SVN repository during the night, since the files are secure I can commit them without entering a username (is that even possible?) or password.
Possible solutions I came up with:
– creating a dummy user without password or with a known password but this poses a security problem (someone could read it and use it to commit whatever he likes)
– creating a script that hides my password but passes it to the svn command.
Thankyou
If you use webdav access (http/https) then you can configure authentication on the server side (you can provide an AuthUserFile for apache to use). You also have the option of third-party authentication, e.g. via LDAP.
If you use svn over ssh, public keys are the way to go. The server uses the public key to authenticate the private key that only the authorised client machine has access to.
Neither of these will require passwords, but will still be secure.