How to backup & update Drupal using command line

  1. backup core files:
    tar vcfz backup/pre-dup-update-7xx.tar.gz

tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

  1. backup drupal database (Mysql)
    mysqldump -uusername -p databasename > backup/folder/file.sql
  2. backup drupal database (Mysql)
    mysqldump -uusername -p databasename > backup/folder/file.sql
  3. backup drupal database (Mysql)
This entry was posted in CMS, Drupal. Bookmark the permalink.

Leave a Reply