jmstacey / cfbackup

A simple ruby program intended to serve as a useful tool for automated backups to Rackspace Cloud Files.
https://github.com/jmstacey/cfbackup/wiki
Other
11 stars 3 forks source link

handle multiple --local_paths #16

Open wheresalice opened 14 years ago

wheresalice commented 14 years ago

It'd be awesome if I could pass multiple values to --local_paths so that I can backup a few things in one call.

jmstacey commented 14 years ago

This could be useful and save time by not having to authenticate multiple times.

I won't have time to look at this in the near future but if anyone feels like giving it a spin, go ahead and fork and then I can pull the changes back in for the next release. That is why I put this project on GitHub after all :-)

wheresalice commented 14 years ago

OptParse isn't great at accepting multiple paths. Well ok, it's rubbish at accepting multiple paths. I've added a naive implementation which works, but I really want to completely rewrite the option parsing to handle it much nicer.

When it comes to pushing the multiple files, it effectively runs through the old push_files multiple times which isn't great in terms of reporting what it's doing but it does work.