Andrew Fletcher published: 13 December 2019 2 minutes read
First transfer the drupal-8.8.x.tar.gz file to your directory
Via your ssh program (for us Terminal on OSX), enter the path to the directory where you transferred the drupal-8.8.x file
gunzip -c drupal-8.8.0.tar.gz | tar xopf - rm -rf /var/www/vhosts/example.com/subdir/drupal-8.8.0.tar.gz rm -rf /var/www/vhosts/example.com/subdir/core ; rm -rf /var/www/vhosts/example.com/subdir/modules ; rm -rf /var/www/vhosts/example.com/subdir/profiles ; rm -rf /var/www/vhosts/example.com/subdir/sites ; rm -rf /var/www/vhosts/example.com/subdir/themes rm -rf /var/www/vhosts/example.com/subdir/vendor rm -rf /var/www/vhosts/example.com/subdir/autoload.php ; rm -rf /var/www/vhosts/example.com/subdir/composer.json rm -rf /var/www/vhosts/example.com/subdir/composer.lock rm -rf /var/www/vhosts/example.com/subdir/example.gitignore rm -rf /var/www/vhosts/example.com/subdir/index.php rm -rf /var/www/vhosts/example.com/subdir/update.php rm -rf /var/www/vhosts/example.com/subdir/robots.txt rm -rf /var/www/vhosts/example.com/subdir/web.config rm -rf /var/www/vhosts/example.com/subdir/drupal-8.8.0/LICENSE.txt rm -rf /var/www/vhosts/example.com/subdir/drupal-8.8.0/README.txt cd drupal-8.8.0 mv "core" ../ ;mv "modules" ../ ;mv "profiles" ../ ;mv "sites" ../ ;mv "themes" ../ mv "vendor" ../ mv "autoload.php" ../ ;mv "composer.json" ../ mv "composer.lock" ../ mv "index.php" ../ mv "robots.txt" ../ mv "update.php" ../ mv "web.config" ../ cd .. rm -rf /var/www/vhosts/example.com/subdir/drupal-8.8.0 chown your_username:psacln -R /var/www/vhosts/example.com/subdir/core chown your_username:psacln -R /var/www/vhosts/example.com/subdir/modules chown your_username:psacln -R /var/www/vhosts/example.com/subdir/profiles chown your_username:psacln -R /var/www/vhosts/example.com/subdir/themes chown your_username:psacln -R /var/www/vhosts/example.com/subdir/sites chown your_username:psacln -R /var/www/vhosts/example.com/subdir/vendor chown your_username:psacln -R /var/www/vhosts/example.com/subdir/autoload.php chown your_username:psacln -R /var/www/vhosts/example.com/subdir/composer.lock chown your_username:psacln -R /var/www/vhosts/example.com/subdir/composer.json chown your_username:psacln -R /var/www/vhosts/example.com/subdir/index.php chown your_username:psacln -R /var/www/vhosts/example.com/subdir/robots.txt chown your_username:psacln -R /var/www/vhosts/example.com/subdir/update.php chown your_username:psacln -R /var/www/vhosts/example.com/subdir/web.config composer update
As a general rule, we comment out the paths that we don't want altered. This is so we have a complete overview of the directory and the elements that we do and don't want updated.
Related articles
Andrew Fletcher
•
30 Apr 2024
Best Practices for Configuring Twig Debug Settings in Drupal 10
When developing with Drupal 10, it's crucial to maintain an environment that is both secure and efficient. One of the important aspects of this setup involves the management of Twig template debugging. Proper configuration of these settings helps prevent unnecessary performance degradation and...
Andrew Fletcher
•
27 Apr 2024
Streamlined Drupal 10 Deployment: Best Practices for Stability and Security
Have you ever walked into a situation at work and just wondered how everything still runs smoothly? I mean, there are deployments with so many fail-safes stacked on a shaky foundation that it's almost a miracle they work at all. The real trick is gently nudging the team toward accepting change to...
Andrew Fletcher
•
27 Apr 2024
TypeError: Cannot assign null to property Drupal\views\Plugin\views\argument\ArgumentPluginBase::$operator of type string
I'm getting the following errorTypeError: Cannot assign null to property Drupal\views\Plugin\views\argument\ArgumentPluginBase::$operator of type string in Drupal\views\Plugin\views\argument\ArgumentPluginBase->unpackArgumentValue() (line 1302 of...