cron para backup del svn

escribimos en la consola: crontab -e luego creamos un linea como esta: 00 */6 * * * /home/gonzo/Scripts/ esto implica que cada 6 horas se ejecuta el script de backup ahora creo el script de backup con esto: ************************************************************ #!/bin/bash svnadmin dump /var/svn/repo1 | gzip > /home/gonzo/repo-`date +%Y-%m-%d–%H-%M`.dump.gz #ahora lo muevo al destino final que […]

Installing and configuring SSH server en ubuntu

# sudo aptitude install openssh-server# sudo vi /etc/ssh/sshd_config (can change the porth there too) Protocol 2…PermitRootLogin no…AllowUsers janeAllowUsers john # sudo /etc/init.d/ssh restart Sometimes you may need to limit which hosts can contact the SSH server. Restrictions can be implemented by using the /etc/hosts.allow and /etc/hosts.deny files. The next allows connections only from trusted networks. […]