Skip to content

rsnapshot installation and configuration with interactive host adding/removing

Notifications You must be signed in to change notification settings

simplyjarod/rsnapshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsnapshot installation and configuration for CentOS

with interactive host adding/removing Python script ;)

Please, download all files before executing any script. There are several dependencies between them. You can use:

wget https://github.com/simplyjarod/rsnapshot/archive/master.zip
unzip master.zip
cd rsnapshot-master
chmod u+x *.sh -R && chmod u+x *.py -R

Initial setup

1. Debemos crear/obtener las claves RSA en el servidor
Necesitamos la clave pública del servidor donde se vayan a almacenar los backups.
Para ello:

ssh-keygen -t rsa
#(dejaremos el lugar donde se almacenen con la opción por defecto)   
#(si ya existiesen nos preguntará si queremos sobreescribirlas. Diremos que NO)
#(NO escribiremos ninguna passphrase para crearlas)

La clave pública estará ubicada en /home/user_name/.ssh/id_rsa.pub (o el nombre que le hayas dado).
Es necesario copiar la clave pública al directorio donde se encuentre el fichero set-host.py y nombrarla como backup.pub  

2. Installation (rsync and rsnapshot)
Run ./setup.sh as root from the folder this file is placed.

3. Configuration
Editaremos el fichero /etc/rsnapshot.conf
Atención a los requisitos del fichero: Finalizar directorios con '/' y usar tabuladores en vez de espacios.

Adding or removing a backup

Run ./set-host.py as root from the folder this file is placed.
Please, follow the interactive dialog asking you what you want to do ;)

About

rsnapshot installation and configuration with interactive host adding/removing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published