Skip to content

homemade/cap-drupal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cap Drupal

Capistrano Drupal recipes.

Dump dbs, backup user generated content, clear cache, and rsync to local host.

This the first releases. Feedbacks, fork and comments welcomed :)

Install

# gem install cap-drupal

Usage

mkdir config
cap-drupal  .

    # helper
cap multistage:prepare

Now you have this tree

.
+--- config
|   +--- deploy
|   |   +--- production.rb
|   |   +--- development.rb
|   |   +--- preview.rb
|   +--- deploy.rb
+--- Capfile

Help

# list tasks with capistrano
cap -T
cap drupal:clean:db:check   # List db dumps to delete.
cap drupal:clean:db:commit  # Delete db dumps over max_keep_dump.
cap drupal:clean:ugc:check  # List ugc backups to delete.
cap drupal:clean:ugc:commit # Delete ugc backups over max_keep_backup
cap drupal:clearcache       # Clear all drupal caches.
cap drupal:db:download      # Dump the db and download to local dir.
cap drupal:db:dump          # Dump the db to cap user home directory.
cap drupal:db:latest        # Download latest db dump to current local dir.
cap drupal:ugc:backup       # Copy user generated content to cap user home.
cap drupal:ugc:download     # Backup and dowload user generated content.
cap drupal:ugc:latest       # Rsync the latest ugc backup to a local dir.
cap drupal:ugc:size         # Show the ugc files current size (du -sh).
cap drupal:web:disable      # Set Drupal maintainance mode to off-line.
cap drupal:web:enable       # Set Drupal maintainance mode to online.

About

Capistrano drupal recipes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%