User talk:Mayank.bhadauria

Upgrading steps for drupal

1. Have a Back up of teknatus site and database. 2. place the site in offline mode. drupal-6.11/?q=admin/settings/site-maintenance Here we have check-box for site offline

3. Download and unzip new drupal files from drupal.org, read upgrade.txt about what changes that has done on new modules, we can also check sql files for updates. 4. Switch themes in default mode (Garland or Bluemarine).

5. Upload new drupal files to the server. To upload files,we will use sftp client software and use 'get' command, using connection information.

6. Run update.php script to update database and files. 7. Re-enable contributed modules an run update.php.

Backing up drupal files and database through command line.

1. use cp command to copy all files from drupals

cp -rp path/to/drupal/site path/to/backup_director

Second option can also be used as to compress all files from drupal directory tar cjf drupalbackup.tar.bz2  path/to/drupal

I have used this option as

tar  cjf    drupalbackup.tar.bz2    Sites/drupal-6.11

Here drupalbackup.tar.bz2 is zip file on root that will keep drupal files and folders that are currently on Path " Sites/ " in drupal-6.11 folder

2. backup drupal database with my sql

mysqldump -u username -p databasename > drupaldatabasebackupfile.sql

mysqldump -u mbhadauria -p assets > drupaldatabasebackupfile.sql password : teknatus

currently drupal sql database is kept in assets database locally. before dump mysql data base turn off cron jobs.

Keep drupaldatabasebackupfile.sql file and drupalbackup.tar.bz2 on same directory called drupal_data_backup.

Upgrading Steps For Drupal Modules

1. Back up drupal database and folders. this can be done by the same way as we have done with command line. 2. Install update_status module which will keep track about any new update available for install modules on drupal.org. The Update module can check modules for updated status automatically to assist you with updates. It will provide us             download links and available versions

Before Starting upgrade modules we need to first disable those modules

http://pipin.teknatus.com/~mbhadauria/drupal-6.11/?q=admin/build/modules

get this link to have module of drupal, 3. In order to disable a module, click to uncheck the “enabled” check-box that's next to it. If a module box is greyed out, that means you cannot yet disable it. This is because there is another module that requires that module to be active.

In this case we first need to disable dependent modules.

Once the page refreshes, the check-box next to the module will no longer be greyed out.

Uninstall the module : Every Module is not available on uninsatall feature. A module will only show up on the uninstall tab if it has this feature. If it doesn't, skip this step and simply delete its files.

Remove/Delete Modules :

1. Use the SSH client software, and use the connection information.

use the command “rm -rf [module folder name]”. for e.g if we are deleteing view module,we would type “rm -rf views”.

2. Run update.php that can be done via two way

Go to the main administration page and click on the “update.php” link on the front page, or we may go directly to            drupal-6.11/update.php in your browser.