Commit 0e5e5e08eefcc2fc5d0d7cbd01a47cc77e551aa3
1 parent
961148fb
Exists in
master
and in
28 other branches
ActionItem1210: don't compress backup
When the server has a lot of users and content already, it takes a long time to compress the files.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/tasks/backup.rake
1 | 1 | desc "Creates a backup of the user files stored in public/" |
2 | 2 | task :backup do |
3 | 3 | dirs = Dir.glob('public/images/[0-9][0-9][0-9][0-9]') + ['public/articles', 'public/thumbnails', 'public/user_themes'].select { |d| File.exists?(d) } |
4 | - tarball = 'backups/files-' + Time.now.strftime('%Y-%m-%d-%R') + '.tar.bz2' | |
4 | + tarball = 'backups/files-' + Time.now.strftime('%Y-%m-%d-%R') + '.tar' | |
5 | 5 | |
6 | 6 | mkdir_p(File.dirname(tarball)) |
7 | - sh('tar', 'cjf', tarball, *dirs) | |
7 | + sh('tar', 'cf', tarball, *dirs) | |
8 | 8 | end | ... | ... |