dans un premier temps, je te propose le classic tar pour creer l archive ... puis tu configure une autentification RSA entre les deux machines : pour ca il faut lire man ssh
je te colle la section interessante:
ssh implements the RSA authentication protocol automatically. The user
creates his/her RSA key pair by running ssh-keygen(1). This stores the
private key in $HOME/.ssh/identity and the public key in
$HOME/.ssh/identity.pub in the user's home directory. The user should
then copy the identity.pub to $HOME/.ssh/authorized_keys in his/her home
directory on the remote machine (the authorized_keys file corresponds to
the conventional $HOME/.rhosts file, and has one key per line, though the
lines can be very long). After this, the user can log in without giving
the password. RSA authentication is much more secure than rhosts authen
tication.
si tu a besoin d une traduction: doublehp arobase doublehp point org
ensuite tu as juste a ajouter a ton crontab les lignes suiivantes:
03 01 * * * root /bin/tar -czf /tmp/dest_file.tgz /<srd_folder>
05 02 * * * root /usr/bin/scp /tmp/dest_file.tgz login@server:/<arch_path>
et le tour est joue. Pour verifier que l autentification RSA a bien ete configure, tu vera que tu peut te loguer en ssh d une machine a l autre sans avoir a taper de mot de passe ( pour que ca marche dans les deux sens, il faut avoir suivi la procedure dans chaque sens ... )
a savoir que ca parait un super joujou, mais l autentification RSA n est pas moins secure que l auth par mdp ... si ce n est plus ...
# Re: Sauvegarde sécurisée à distance...
Posté par doublehp . En réponse au journal Sauvegarde sécurisée à distance.... Évalué à 3.
je te colle la section interessante:
ssh implements the RSA authentication protocol automatically. The user
creates his/her RSA key pair by running ssh-keygen(1). This stores the
private key in $HOME/.ssh/identity and the public key in
$HOME/.ssh/identity.pub in the user's home directory. The user should
then copy the identity.pub to $HOME/.ssh/authorized_keys in his/her home
directory on the remote machine (the authorized_keys file corresponds to
the conventional $HOME/.rhosts file, and has one key per line, though the
lines can be very long). After this, the user can log in without giving
the password. RSA authentication is much more secure than rhosts authen
tication.
si tu a besoin d une traduction: doublehp arobase doublehp point org
ensuite tu as juste a ajouter a ton crontab les lignes suiivantes:
03 01 * * * root /bin/tar -czf /tmp/dest_file.tgz /<srd_folder>
05 02 * * * root /usr/bin/scp /tmp/dest_file.tgz login@server:/<arch_path>
et le tour est joue. Pour verifier que l autentification RSA a bien ete configure, tu vera que tu peut te loguer en ssh d une machine a l autre sans avoir a taper de mot de passe ( pour que ca marche dans les deux sens, il faut avoir suivi la procedure dans chaque sens ... )
a savoir que ca parait un super joujou, mais l autentification RSA n est pas moins secure que l auth par mdp ... si ce n est plus ...
A+