Skip to main content
101
results
Andrew Fletcher
This page will be a progressive outline of moving those regular run scripts that really need to be automated.  Or triggered by a keyword. These scripts are rsync commands   The initial scripts production environment sudo rsync -aur staging/{project}/config drupal cd drupal sudo chown -R www-data:www-data config cd .. sudo rsync -aur staging/{project}/core drupal cd drupal sudo chown -R www-data:www-data core cd .. sudo rsync -aur staging/{project}/modules drupal cd drupal sudo chown...
Andrew Fletcher
This issue I have a folder with about 10,000 files in it.  I want to scan...
Andrew Fletcher
Using Homebrew for speed tests... I'm using Speediest CLI - for more details go...
Andrew Fletcher
I'm in an environment where the default branch is staging and I'm attempting to...
Andrew Fletcher
How to count the number of files in a directory.  At some point you'll have...
Andrew Fletcher
I've recently upgraded the server Ubuntu 20.04 updating the PHP version from 7.4 to 8.1.  However, when I've attempted to export the MySQL database using the command drush sql-dump --extra-dump=--no-tablespaces --result-file=../sql/db-2023-02-25.sqlI seeing the following response > mysqldump: Couldn't execute 'FLUSH TABLES': Access denied; you need (at least one of) the RELOAD or FLUSH_TABLES privilege(s) for this operation (1227) In SqlCommands.php line 242: Unable to dump...
Andrew Fletcher
How do you remove a file from git? Use the command (rm) to remove files from...
Andrew Fletcher
Moving a Git repo due to a change of agencies   Steps to change the...
Andrew Fletcher
Find by file name To perform a find command in terminal use find / -name...
Andrew Fletcher
I had generated a backup of key directories on the server - see Create a...
Andrew Fletcher
An approach to generating a backup server is using a shell script.  A script can define directories to backup, and pass those directories as arguments to the tar utility, which creates an archive file. The archive file can then be moved or copied to another location.   Example Shell Script #!/bin/bash # # Backup script # # NAME: daily-backup.sh # PATH: /mnt/e/bin # DESC: Backup scripts, documents and configuration files to .tar # # What to backup # backup_files="/home...
Andrew Fletcher
Currently, I have a situation where I have two repositories.  The first is...
Andrew Fletcher
Creating a bash script Bash scripts are files containing code that tell your...
Andrew Fletcher
Working from the bases that .DS_Store has not been added to your git repository,...
Andrew Fletcher
How do you generate a .pem file from an existing .ppk key? Is putty on your...