Nice tar in the mysql backup script as well
This commit is contained in:
parent
d517ce90fa
commit
62d52f7db5
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ namespace :backup do
|
|||
`nice mysqldump --user=#{user} --password=#{password} #{database} >> /tmp/backup/mysql/backup.txt `
|
||||
|
||||
tar_name = "mysql_#{Time.now.to_i}.tar"
|
||||
`tar cfPz /tmp/backup/#{tar_name} /tmp/backup/mysql`
|
||||
`nice tar cfPz /tmp/backup/#{tar_name} /tmp/backup/mysql`
|
||||
|
||||
file = mysql_container.create_object(tar_name)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue