Backup commands: Difference between revisions
From Knot Atlas
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
mysqldump -u <username> -p <nameofyourdatabase> > wikidb-backup-05MoDa.sql |
mysqldump -u <username> -p <nameofyourdatabase> > wikidb-backup-05MoDa.sql |
||
*To create a backup of the web directory, login as wiki, and go to /www/html/w and type |
*To create a backup of the web directory, login as wiki, and go to /www/html/w and type |
||
tar cvzf web-backup-2005MoDa.tar.gz * |
tar cvzf web-backup-2005MoDa.tar.gz * |
Revision as of 22:46, 31 August 2005
- To backup the SQL database
mysqldump -u <username> -p <nameofyourdatabase> > wikidb-backup-05MoDa.sql
- To create a backup of the web directory, login as wiki, and go to /www/html/w and type
tar cvzf web-backup-2005MoDa.tar.gz *