WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Rails and Backup  (Read 3350 times)

hypersonic

  • Guest
Rails and Backup
« 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?

hypersonic

  • Guest
Re: Rails and Backup
« Reply #1 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.

hypersonic

  • Guest
Re: Rails and Backup
« Reply #2 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?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11591
Re: Rails and Backup
« Reply #3 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.

hypersonic

  • Guest
Re: Rails and Backup
« Reply #4 on: October 12, 2011, 12:19:32 AM »
Thanks. I removed 'cache' from .xfiletools.lst.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11591
Re: Rails and Backup
« Reply #5 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.

hypersonic

  • Guest
Re: Rails and Backup
« Reply #6 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
« Last Edit: October 12, 2011, 10:44:56 AM by hypersonic »

hypersonic

  • Guest
Re: Rails and Backup
« Reply #7 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
« Last Edit: October 12, 2011, 12:12:33 PM by hypersonic »