Drupal
Upgrading Drupal
Heads up, either add the following to an exclusion list or just be very careful not to delete these when upgrading:
- /sites
- /files (if applicable, the later versions should have /files in /sites so it’ll something like /sites/default/files)
- .htaccess
- robots.txt
- sitemap.xml
Changing Domain
Don’t forget to backup files and database before doing anything. settings.php and exported / imported files must be modified to reflect the new domain environment. After that, just wait for domain propagation.
Backup Procedure
Files via ftp
- copy all of the files from the ftp server to local
- then keep the original name but remove the domain
Database via mysql
- login phpmyadmin
- click on db to backup
- click on export
- select all tables to backup
- make sure sql is checked, default settings are usually fine
- check save file as and hit go
using phpmyadmin is probably ok for small or medium sites, but not so for very big or very popular sites
Import
For localhost, to import more than (Max: 2,048 KiB):
ps aux | grep mysql
mysql -S /opt/lampp/var/mysql/mysql.sock -u root -p sifer < sifer.sql
- Enter password when prompted.
Original temporary directory:
/nfsn/content/drupalish/tmp
For nfs:
mysql --host=DATABASE.db --user=USERNAME --password="PASSWORD" DATABASE < DATABASE.sql
drupal
web_development
]