Deleting Files 30 days or older

In order to keep my backup server from running out of harddrive space, I needed to remove anything that was 30 days or older. (This was for my Zimbra backups). In order to do this, I just had to add the following line to my crontab:

find yourdirectory -maxdepth 1 -mtime +30 -exec rm -rf {} \;

It is as simple as that!

How do I import a MySQL dumpfile into my database?

Open up a terminal and type:


mysql -p -h DATABASESERVER DataBaseName < sqlname.sql

DATABASESERVER: IP Address of Database Server

DataBaseName: Name of Database

sqlname.sql: Name of sql file

Sound Rip

Here is the method for recording sound directly from the sound card.

1. open console > type alsamixer , enter

2. Press F4 , use arrow keys to highlight Captur , press space bar as required ( till you can see L & R )

3. Now you need to select another channel, (again use arrow keys,space bar) , the channel that worked for me was 'mix' . So first try by highlighting 'mix' , press spacebar.

4. Now simply use

arecord -f cd -t raw | lame -b 160 -x - out.mp3

Backup Utilities for Linux

Here are a few backup programs for linux that I have read about. I have yet to try any, but plan to soon.

[More]

BlogCFC was created by Raymond Camden. This blog is running version 5.9.1.002. Contact Blog Owner