Forum: Ruby Ruby Error in CfBackup script for Rackspace upload

F07efa4b42b0ab4f64379e6bab4d015f?d=identicon&s=25 Nazeer Naz (nazeeronline)
on 2012-12-23 18:56
I am getting a small error when I am running the backups

I am using the cfbackup to backup my files to Rackspace Cloud files
cfbackup tool can be found here : https://github.com/jmstacey/cfbackup

My Ruby Version : ruby 1.8.7 (2012-06-29 patchlevel 370) [x86_64-linux]
My Gem Version : 1.8.24
My Rails version : Rails 2.3.14

===============
cfbackup --action push -v -r --local_path /backup/ --container test
Establishing connection... done.
There are 38 files to process.
(1/38) Skipping cpbackup
(2/38) Skipping cpbackup/monthly
(3/38) Pushing file
cpbackup/monthly/stayatad.tar.gz.../usr/lib/ruby/gems/1.8/gems/rackspace-cloudfiles-1.4.0.0/lib/cloudfiles/storage_object.rb:50:in
populate': Object cpbackup/monthly does not exist
(NoSuchObjectException)
from
/usr/lib/ruby/gems/1.8/gems/rackspace-cloudfiles-1.4.0.0/lib/cloudfiles/storage_object.rb:175:inwrite'
from
/usr/lib/ruby/gems/1.8/gems/rackspace-cloudfiles-1.4.0.0/lib/cloudfiles/storage_object.rb:249:in
make_path'
from
/usr/lib/ruby/gems/1.8/gems/rackspace-cloudfiles-1.4.0.0/lib/cloudfiles/storage_object.rb:174:inwrite'
from
/usr/lib/ruby/gems/1.8/gems/rackspace-cloudfiles-1.4.0.0/lib/cloudfiles/storage_object.rb:196:in
load_from_filename'
from
/usr/lib/ruby/gems/1.8/gems/jmstacey-cfbackup-0.7.1/lib/cfbackup.rb:149:inpush_files'
from
/usr/lib/ruby/gems/1.8/gems/jmstacey-cfbackup-0.7.1/lib/cfbackup.rb:132:in
each'
from
/usr/lib/ruby/gems/1.8/gems/jmstacey-cfbackup-0.7.1/lib/cfbackup.rb:132:inpush_files'
from
/usr/lib/ruby/gems/1.8/gems/jmstacey-cfbackup-0.7.1/lib/cfbackup.rb:63:in
run'
from /usr/lib/ruby/gems/1.8/gems/jmstacey-cfbackup-0.7.1/bin/cfbackup:6
from /usr/bin/cfbackup:23:inload'
from /usr/bin/cfbackup:23
=========

The script even breaks when multiple files are uploading in a folder.
the file uploads properly though... but i think because the script is
old and the server is having latest ruby installed, there is a mismatch.

Can you please let me know where is it going wrong..
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.