ogs README * Home Page ogs is hosted by me! Check http://cesarkallas.soulivre.org/projetos/ogs/ * Bugs Please if you have found bugs, send directly to my email. Cesar Kallas - ===== INDEX ===== 1. What is ogs 2. Whats softwares you need 3. What you need configure 4. Usage ============== 1. What is ogs ============== ogs is "Only God Save, the Man make Backup". ogs is system of backup, with two scripts: ogsclient and ogserver ogsclient: 1. Check local system - if you have: TAR, SCP - if you configure the PATH to backup and if you is root - if the server backup is online - if you already have ssh key with the server or no (if not, make one) 2. Make backup file on local directory 3. Transfer this file to server backup via SCP and ssh key (the password is necessary only in first login) The name of client is "uname -n", this name is used on server, because you need one account in the server to tranfer backup file. ogserver 1. Check if have backup folder 2. Set default permissions 3. Add group "backup" 4. Add local user in group backup the login name is "uname -n" of the client The bkpclient make local backup file and transfer this file to one server. The backup file is generate with TAR in bz2 format and the transfer is by SCP. =========================== 2. Whats softwares you need =========================== tar - The GNU version of the tar archiving utility http://www.gnu.org/software/tar/tar.html openssh - http://www.openssh.com SCP - secure copy (remote file copy program) useradd - Create a new user grep - print lines matching a pattern bash - GNU Bourne-Again SHell ========================== 3. What you need configure ========================== 1. Configure path to backup in the file /etc/backup.path Example, i need backup the directory /tmp and /home/cesarkallas so, i put this paths in backup file [root@cesarkallas ~]# cat /etc/backup.path /tmp /home/cesarkallas 2. IP of the server Edit the /sbin/ogsclient (or where you put this file) and type ip of the server [root@cesarkallas ~]# vim /sbin/ogsclient SERVER_BACKUP="10.0.0.1" where 10.0.0.1 is the IP of my server backup. 3. View your hostname with the command: uname -n 4. Add new user on the server, the login name is the result of uname -n in the client, set one password, is need to first login If you not want use the hostname as login name, edit the ogsclient and set as CLIENT_USER="youlogin" *** You need configure the SSH server on SERVER BACKUP to accept connections with RSA KEY via SCP. Edit the file on server: /etc/ssh/sshd_config and comment this line with # : PubkeyAuthentication y >> # PubkeyAuthentication y now, restart the sshd to works! ======== 4. Usage ======== 1. Run ogsclient (already configured) [root@cesarkallas ~]# ogsclient