{"comment":{"created_at":"2011-10-20T14:53:05Z","body":"I have a few initial questions.\r\n\r\n1. How do I enable the Splitting feature?\r\n2. How do I configure the chunk size?\r\n3. Assume you set up 3 different storage locations for the same backup (S3, CF, and Dropbox). Does it re-split it 3 times?\r\n\r\nThe implementation overal looks OK, though I'm not sure about putting Splitting logic in the Storage logic. Of course, using a `chuncks` method and iterating through that is good, and greatly simplifies the transferring implementation. But the actual Splitting I think should be it's own stage.\r\n\r\nI was thinking something like:\r\n\r\n```ruby\r\nBackup::Model.new(.....) do\r\n  split_into_chunks_of 1000 # megabytes\r\n\r\n  ... storages, archives, compressors, encryptors, etc here ...\r\nend\r\n```\r\n\r\nBut, if you were using Dropbox, you could do something like:\r\n\r\n\r\n```ruby\r\nBackup::Model.new(.....) do\r\n  split_into_chunks_of 300 # megabytes\r\n\r\n  ... storages, archives, compressors, encryptors, etc here ...\r\nend\r\n```","updated_at":"2011-10-20T14:53:05Z","url":"https://api.github.com/repos/meskyanichi/backup/issues/comments/2469648","id":2469648,"user":{"avatar_url":"https://secure.gravatar.com/avatar/3b520db94a0d08263122648c6755e334?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3b520db94a0d08263122648c6755e334","url":"https://api.github.com/users/meskyanichi","id":54708,"login":"meskyanichi"}},"action":"created","issue":{"number":193,"created_at":"2011-10-10T03:22:30Z","pull_request":{"diff_url":"https://github.com/meskyanichi/backup/pull/193.diff","patch_url":"https://github.com/meskyanichi/backup/pull/193.patch","html_url":"https://github.com/meskyanichi/backup/pull/193"},"body":"Let me know what you think about this.\r\n\r\nI did not inject the split behavior in a central place yet. Reason is, that really only the call to 'split!' can be centralized into lib/backup/model.rb or so. Everything that happens inside the loop of transferring or removing the backup files looks rather specific for every storage to me.\r\n\r\nThere is also no 'assemble' command yet. All it takes to assemble the parts back into the complete archive is 'cat chunk-* > whole' so I figured we do not need a Ruby wrapper for cat :-).","comments":2,"title":"Split backup archive","updated_at":"2011-10-20T14:53:05Z","url":"https://api.github.com/repos/meskyanichi/backup/issues/193","id":1860520,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/b67f92d766d1b1d861c13857d3f8e6a8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b67f92d766d1b1d861c13857d3f8e6a8","url":"https://api.github.com/users/m4","id":1028800,"login":"m4"},"html_url":"https://github.com/meskyanichi/backup/issues/193","labels":[],"state":"open"},"legacy":{"issue_id":1860520,"comment_id":2469648}}