0

into my backup Linux server (Ubuntu) I have done a system to backup my three servers. Into etc/crontab I have write line like this:

0 0 * * * user rdiff-backup -v9 user@111.111.111.111::/var/www/ /mnt/server1/www
0 1 * * * user rdiff-backup -v9 user@222.222.222.222::/var/www/ /mnt/server2/www
0 2 * * * user rdiff-backup -v9 user@333.333.333.333::/var/www/ /mnt/server3/www

But if the first rdiff-backup don't finish before 2:00 am, and the second rdiff-backup start is a problem? Can two or more rdiff-backup run together?

mgorven
  • 30,615
  • 7
  • 79
  • 122

1 Answers1

1

Yes, rdiff-backup works in parallel. Especially in your case, since the hosts and directories are separate, it shouldn't cause a problem. But if you encounter any performance issues due to multiple rdiff-backup scripts running in parallel, then you might need to modify your cron so that a script starts only after the one immediately preceding it finishes. In bash you usually use the && to concatenate the processes, as in script1 && script2 && script2. If the first script finishes successfully, the second one starts..and so on.

Daniel t.
  • 9,291
  • 1
  • 33
  • 36