Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Easily manage automated server tasks for WordPress based sites.

NotificationsYou must be signed in to change notification settings

A5hleyRich/simple-automated-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

This is a repo for sharing how I manage automated tasks as part of the seriesHosting WordPress Yourself.

Installation

Copy the.tasks directory to your home directory:

.tasks     - backups.sh     - cron.sh     - permissions.sh     - sites.shsite1.com     + backups     + cache     + logs     + publicsite2.com     + backups     + cache     + logs     + publicsite3.com     + backups     + cache     + logs     + public

Ensure the bash scripts have execute permissionschmod +x backups.sh checksums.sh cron.sh permissions.sh sites.sh.

Updatesites.sh with the absolute path to where your site directories reside. Updatebackups.sh,checksums.sh,cron.sh andpermissions.sh with the absolute path of your sites.sh file.

Add each site to thesites.sh config file:

SITES=("site1.com""site2.com""site3.com")

Add a cronjob for each individual taskcrontab -e. The following example will run WordPress cron every 5 minutes, perform backups daily at 5AM, update file permissions daily at 6AM and verify checksums at 7AM:

*/5 * * * * cd /home/a5hley/.tasks; bash cron.sh >/dev/null 2>&10 5 * * * cd /home/a5hley/.tasks; bash backups.sh >/dev/null 2>&10 6 * * * cd /home/a5hley/.tasks; bash permissions.sh >/dev/null 2>&10 7 * * * cd /home/a5hley/.tasks; bash checksums.sh >/dev/null 2>&1

If you plan on sending backups to S3 you must alsoinstall and configure the AWS CLI tools.

The checksums task requires aPushbullet account, so that notifications are pushed to your computer, IOS or Android devices. Add yourAccess Token to thechecksums.sh file:

TOKEN=mytoken

About

Easily manage automated server tasks for WordPress based sites.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp