This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # License: Eclipse Public License - v 2.0 (https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html) | |
| # Updated on November 7, 2022 | |
| if [ -z "$1" ] | |
| then | |
| echo -e "\nOne must pass the folder name under /var/www to be set. Exiting. . . .\n\n" | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # License: Eclipse Public License - v 2.0 (https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html) | |
| # Updated on November 7, 2022 | |
| # | |
| # Python routine for copying a complete directory structure up to Dropbox. | |
| # Uses Python SDK for API v2 | |
| # https://www.dropbox.com/developers/documentation/python | |
| import dropbox | |
| import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # License: Eclipse Public License - v 2.0 (https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html) | |
| # Updated on November 7, 2022 | |
| #------------------------------------------------------------------------------ | |
| function backupFolder | |
| { | |
| lcRootBackup="$1" | |
| lcSource="$2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # License: Eclipse Public License - v 2.0 (https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html) | |
| # Updated on November 7, 2022 | |
| # Designed to backup websites that are in /var/www and use MySQL. | |
| # Recommend the root user. | |
| # In order to get rid of the following message | |
| # Warning: Using a password on the command line interface can be insecure. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # From http://www.cyberciti.biz/tips/howto-backup-postgresql-databases.html | |
| # and from | |
| # http://wiki.postgresql.org/wiki/Automated_Backup_on_Linux | |
| #!/bin/bash | |
| # License: Eclipse Public License - v 2.0 (https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html) | |
| # Updated on November 7, 2022 | |
| # Example of how to run in cron | |
| # 0 2 * * * su - postgres /usr/local/sbin/postgresbackup.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Startup script for Derby, the database server | |
| # | |
| # chkconfig: 345 90 10 | |
| # description: Derby is the database server | |
| # processname: derby | |
| # pidfile: /var/run/derby.pid | |
| if [ -z "$DERBY_USER" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # License: Eclipse Public License - v 2.0 (https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html) | |
| # Updated on May 25, 2026 | |
| # From http://drupal.stackexchange.com/questions/373/what-are-the-recommended-directory-permissions | |
| # And more recent | |
| # https://www.drupal.org/node/244924 | |
| #------------------------------------------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # License: Eclipse Public License - v 2.0 (https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html) | |
| # Updated on November 7, 2022 | |
| # Derived from | |
| # http://blog.snowfrog.net/2005/11/16/backup-multiple-databases-into-separate-files/ | |
| # Backup each mysql db into a different file, rather than one big file | |
| # as with --all-databases - will make restores easier |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // License: Eclipse Public License - v 2.0 (https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html) | |
| // Updated on April 29, 2026 | |
| /* | |
| Special note: DO NOT USE document.write | |
| From https://groups.google.com/g/rw-website-help/c/fNNwtIHnThM?pli=1 | |
| Pat Asher reply | |
| document.write() has two henchmen, document.open(), and document.close(). When the HTML document is loading, |
NewerOlder