0

I'm using the following command to backup a large running mysql database (~500GB).

innobackupex --user=user --password=***** --stream=tar ./db-backup | bzip2 - > backup.tar.bz2

Since the backup process takes more than 24 hours, I want to run the task in the background. Background task doesn't work unfortunately with the following command and as soon as my ssh session to the server is closed (or a connection reset occurs) backup process terminates:

nohup innobackupex --user=user --password=***** --stream=tar ./db-backup | bzip2 - > backup.tar.bz2

Please advice.

1 Answer 1

1

Use screen or tmux. Alternatively, start it from a cron job.

1
  • Thanks, solved by installing screen, running it, running innobackupex without nohup, and then pressing Ctrl+a d to detach session.
    – Mohsen
    Jan 17, 2013 at 17:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .