Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: jbritten/wordpress-s3-backup
base: 4e89400927
...
head fork: jbritten/wordpress-s3-backup
compare: 0087d9e119
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 2 contributors
Commits on Jan 11, 2012
@hectcastro hectcastro Added a Gemfile to manage dependencies and updated the documentation
within wordpress.rake.
ce9f1e5
Commits on Jan 22, 2012
@jbritten Merge pull request #1 from hectcastro/added-gemfile
Added a Gemfile to manage dependencies
0087d9e
Showing with 12 additions and 4 deletions.
  1. +1 −0  .gitignore
  2. +4 −0 Gemfile
  3. +7 −4 wordpress.rake
View
1  .gitignore
@@ -0,0 +1 @@
+Gemfile.lock
View
4 Gemfile
@@ -0,0 +1,4 @@
+source :rubygems
+
+gem "rake"
+gem "aws-s3"
View
11 wordpress.rake
@@ -16,19 +16,22 @@
#
# Prerequisites
#
-# 1. You'll need to install the aws-s3 gem.
-# $ sudo gem install aws-s3
+# 1. You'll need to install the dependencies.
+#
+# $ gem install bundler
+# $ bundle install
#
# 2. Specify your database credentials, site path, and Amazon S3 access keys below.
#
# Execution
#
-# $ rake -f wordpress.rake wordpress:backup
+# $ bundle exec rake -f wordpress.rake wordpress:backup
#
# Automation
#
# Put this in your crontab to run nightly backups at 3am:
-# 0 3 * * * rake -f /PATH/TO/wordpress.rake wordpress:backup
+#
+# 0 3 * * * /bin/bash -l -c 'cd /PATH/TO && PATHTOSITE="/apps/cool" bundle exec rake -f wordpress.rake wordpress:backup'
#
require 'rubygems'

No commit comments for this range

Something went wrong with that request. Please try again.