On Thu, 2004-08-19 at 12:01, Ira Abramov wrote: > I'm keeping a hosted machine with no backup medium on board and I was > wondering if what I'm using to back it up makes sense... I am using a > mix of rsync mirroring of actual files (like the various websites) and > an rsync of a gzip of a daily dump of the mySQL and logs. the idea that > the mySQL dump should have minimal diff (even when compressed) and rsync > should do a good job at it.
You should check if your gzip runs with --rsyncable option, otherwise you don't save as much bandwidth as you want. The --rsyncable option makes gzip create archives that are a bit larger than normal ones but that are less likely to have big changes throughout the file due to a small change at the start. > the server creates the backup on the local disk by cron and then another > cronjob on my home machine rsyncs the data. is there a better system? > emphasis here is on low bandwidth for the daily backup - as much > information with as little byte exchange on the costly line, hence the > choice of Rsync. if there is a better trick I'd be happy to know. You could try to setup things so that the cron on the server will do the backup and the rsync, or have the cron on your backup machine connect to the server and do the backup and then issue the rsync, so that you will always be synchronized after the dump process has completed so you won't have partial data. > second, I wanted to start looking into how much bandwidth is taken. the > server has been up for nearly 40 days at Actcom now, and the eth0 > statistics show 3GiB transmitted, although the stats of my most loaded > virtual website say 117G has gone through... at least according to > webalyzer and Apache. am I checking in the wrong place? I'd like to > install MRTG to meter exactly whet my line usage is (only one NIC, very > simplistic), what is the best place to read this info from? It might be that one of the sources rolled over or something, the eth0 statistics most likely. I'd trust the webalizer/apache logs better. You could also install hotsanic to be able to watch the status of your server machine, it will also give you cpu and io usage as well as other things. If you want you can also add monitoring of the mail queue, the number of active apache server and the like. Baruch ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
