Pages

Friday, June 18, 2010

Command backup thuong dung


Create a backup folder:
mkdir /home/backup chmod 700 /home/backup cd /home/backup

Backup the database
mysqldump -u root -p dbispconfig > dbispconfig.sql

Ex: Backup Folder

tar pcfz software.tar.gz /usr/local/software

Backup the configuration files in /etc
tar pcfz etc.tar.gz /etc

Uznip:
tar xvzf software.tar.gz

No comments: