lib/s3backup/manager.rb in s3backup-0.8.4 vs lib/s3backup/manager.rb in s3backup-0.8.5
- old
+ new
@@ -93,19 +93,19 @@
exclude = " --exclude=#{shell_name(File.basename(dir))}/" + sub_dir.map{|d| shell_name(d)}.join(
" --exclude=#{shell_name(File.basename(dir))}/")
end
cmd = "(cd #{shell_name(File.dirname(dir))};tar -czvf #{shell_name(path)} #{exclude} -- " +
"#{shell_name(File.basename(dir))} > /dev/null 2>&1)"
- S3log.debug(cmd)
+ S3log.info(cmd)
system(cmd)
unless $?.success?
S3log.error("feiled #{cmd} execute. #{$?.inspect}")
exit(-1)
end
end
def from_tgz(path,dir)
cmd = "tar -xzvf #{shell_name(path)} -C #{shell_name(dir)} > /dev/null 2>&1"
- S3log.debug(cmd)
+ S3log.info(cmd)
system(cmd)
unless $?.success?
S3log.error("feiled #{cmd} execute. #{$?.inspect}")
exit(-1)
end