nav HOME » Archive by category 'System administration'

Easy way to convert svn repository to git

To quickly convert svn repo to git (with history), all you need is: git svn clone my_svn_adddress But, you’ll probably also want to convert old svn usernames to git author names + e-mails. You can do that with -A switch: git svn clone my_svn_adddress -A users.txt users.txt example: my_old_username = My Name <my_email@example.com> my_old_username2 = [...]

Posted in System administration
Tags: ,

How-to: AWstats installation and configuration on Debian

This is a simple tutorial on how to install AWstats on Debian and configure it for displaying web statistics. I’ve tried this on lenny, but it should also work on other versions with small or no modifications. First, make sure your web server is configured to write access logs to combined format. This is default [...]

Posted in System administration
Tags: , , , , , ,

MySQL backup and point in time recovery with binary logs

Backing up MySQL data is very important if you run MySQL on any kind of production server. We’ll explore some basic concepts which allows you to do that. We’re interested in two types of backup: full and incremental. Full backup can be saved as a collection of queries which can restore a database (logical), or [...]

Posted in System administration
Tags: , ,

How-To: Backup linux host over rsync and ssh with BackupPC

We have two hosts – one with BackupPC installed (I will call it “backuppc_host”), and other to backup (“backup_host”)… On backup_host Install rsync apt-get install rsync Create a user for backup: adduser rbackup On backuppc_host Become backuppc user: su – backuppc Create a ssh  key pair: ssh-keygen Copy public key to backup_host (replace 2222 with [...]

Posted in Linux, System administration
Tags: , , , ,

How-To: BackupPC with lighttpd on debian lenny

This is the way I set up BackupPC with lighttpd on lenny… Install package: apt-get install backuppc In this process, apt-get will automatically install apache2 package (if not already installed), but if you don’t need it, remove it with: apt-get remove apache2* apt-get autoremove Edit file /etc/lighttpd/lighttpd.conf and add “mod_cgi” to server.modules section. Add “default.cgi” [...]

Posted in Linux, System administration
Tags: , , , ,

How-To: Software RAID 1 setup on a new Debian Lenny system

RAID 1 (Mirroring) is a great solution for preserving data integrity. If one disk fails, data will still remain on the second disk.
Although hardware RAID is a better solution in most cases, software RAID has a few advantages: it doesn’t require additional hardware, and disks can have different sizes.

Posted in Linux, System administration
Tags: , , ,