Hi there. I'm using Infinitewp and I like it. VaultPress might be great, but it's really expensive if you need to manage a bunch of websites. So I'm surprised this is being offered as the solution in this thread.
Infinitewp also doesn't support backing up files outside the wp root folder, which I think is logical when thinking about security. They do advise to create symlinks to the folders you want backed up. To me it sounds like a proper solution.
Still I'd like to fully integrate it into the Capistrano process and I'm not too sure about that. I suspect I need to add it to deploy.rb as a task to run after deploy.
I need symlinks for all custom files:
1. shared web/app/uploads folder
2. the web/app folder of the current release
I've come up with something like this:
namespace :deploy do
desc 'Place correct symlinks for functional infinitewp backups'
task :symlink_config do
on roles(:app) do
execute 'ln -s /home/username/webapps/website.com/current/web/app /home/username/webapps/website.com/current/web/wp/'
execute 'ln -s /home/username/webapps/website.com/shared/web/app/uploads /home/username/webapps/website.com/current/web/wp/'
after 'deploy:publishing', 'deploy :linked_files'
The most important think I'm missing here – I think – is a way to use variables to construct the paths to the current release folder. It's also very possible that I totally messed up the whole structure, since I'm not used to coding in Ruby. Any input would be great. Thanks!