Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: hypersonic on October 11, 2011, 11:22:12 PM

Title: Rails and Backup
Post by: hypersonic on October 11, 2011, 11:22:12 PM
So. I've loaded ruby.tcz and ruby-dev.tcz, and installed rails with "gem install rails".  For persistence, I've included lines: "/usr/local/bin" and "/usr/local/lib/ruby" to /opt/.filetools.lst. But something strange happens, the backup is missing a folder inside ruby directory: "/usr/local/lib/ruby/gems/1.8/gems/activesupport-3.1.1/lib/active_support/cache". I've tried include this path to .filetools.lst, but without sucess. What can be wrong?
Title: Re: Rails and Backup
Post by: hypersonic on October 11, 2011, 11:49:00 PM
I've renamed folder cache to 'file', and it's saved. But with name 'cache' I can't save.
Title: Re: Rails and Backup
Post by: hypersonic on October 11, 2011, 11:56:35 PM
And I've changed folder(cache) location inside ruby folder, and now I can't save the file. Maybe something to do with the folder name?
Title: Re: Rails and Backup
Post by: Rich on October 12, 2011, 12:14:21 AM
Hi hypersonic
The file  /opt/.xfiletool.lst  lists  cache  among the things to exclude. That entries in that file over-ride
those listed in  /opt/.filetool.lst.
Title: Re: Rails and Backup
Post by: hypersonic on October 12, 2011, 12:19:32 AM
Thanks. I removed 'cache' from .xfiletools.lst.
Title: Re: Rails and Backup
Post by: Rich on October 12, 2011, 12:24:51 AM
Hi hypersonic
If you have a browser, you may want to add the path to it's cache back in. Same for any other app
that may create a large cache file or directory.
Title: Re: Rails and Backup
Post by: hypersonic on October 12, 2011, 10:42:36 AM
Ok. I used "find / -iname cache" to see all directories named 'cache' , chose some and add to xfiletools.lst. Thanks
Title: Re: Rails and Backup
Post by: hypersonic on October 12, 2011, 10:52:04 AM
I don't know if it's important, but the directory "/usr/local/lib/ruby/gems/1.8/gems/active/usr/local/lib/ruby/gems/1.8/gems/active_support/cache" in Rails is not only to store temporary files, it's for Rails Caching:

http://guides.rubyonrails.org/caching_with_rails.html (http://guides.rubyonrails.org/caching_with_rails.html)