On 2 March 2012 09:44, Robert Gauld <mailinglists@robertgauld.co.uk> wrote:
I'm stuck on this, I'm trying not to backup what really isn't needed is some rails apps I'm doing. Basically Bitfolk does backups of (amongst other things) my /var directory (I already have a .bitfolk-rsync-filter to ensure that some stuff in /var isn't backed up). In side /var/www/rails-apps I have a rails app (with more to be added), since the git repositotires the code comes from are backed up elsewhere I don't want to backup each app's .git folder or any .git* files. I also don;t want to backup the log or tmp directories for each app.

I have a /var/www/.bitfolk-rsync-filter file with the following contents:
- .*
- .*/
- rails-apps/*/tmp/
- rails-apps/*/log/
- rails-apps/**/.git*
- rails-apps/*/.git/

I have also tried this contents:
- .*
- .*/
- /var/www/rails-apps/*/tmp/
- /var/www/rails-apps/*/log/
- /var/www/rails-apps/**/.git*
- /var/www/rails-apps/*/.git/

However the following files (which I don't want backed up) are being backed up:
/var/www/rails-apps/osmx.staging/.git (directory)
/var/www/rails-apps/osmx.staging/.gitignore
/var/www/rails-apps/osmx.staging/vendor/plugins/.gitkeep
/var/www/rails-apps/osmx.staging/vendor/assets/stylesheets/.gitkeep
/var/www/rails-apps/osmx.staging/lib/tasks/.gitkeep
/var/www/rails-apps/osmx.staging/lib/assets/.gitkeep
/var/www/rails-apps/osmx.staging/test/integration/.gitkeep
/var/www/rails-apps/osmx.staging/test/functional/.gitkeep
/var/www/rails-apps/osmx.staging/test/unit/.gitkeep
/var/www/rails-apps/osmx.staging/test/fixtures/.gitkeep
/var/www/rails-apps/osmx.staging/.gitignore
/var/www/rails-apps/osmx.staging/app/models/.gitkeep
/var/www/rails-apps/osmx.staging/app/mailers/.gitkeep

What have I got wrong (so far neither the man page or Google have helped me)?

--
Robert Gauld
http://www.robertgauld.co.uk


I forgot to add /var/www/rails-apps/osmx.staging/tmp and /var/www/rails-apps/osmx.staging/log directories to what it's backing up but shouldn't.

--
Robert Gauld
http://www.robertgauld.co.uk