Montag, 12. Juli 2010

MySQL Backup

To create a compressed backup of your MySQL Database you can use the following statement:

mysqldump --all-databases -u user -p'password' | gzip > /path/file-"`date +%F-%H-%M-%S`
".sql.gz

Dienstag, 6. Juli 2010

Change a users home directory also the ftp on standard debian

To change the home directory of a user this line will do that:

usermod -d /path/to/new/homedir/ username