Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    RSYNC - multiple drives one after another ...


    hello,

    I could you use some help from the experts.
    I have few drives that I need to backup daily ..

    I'm using the following command added multiple times to CronTab for each drive.

    rsync -e ssh -avzn --delete-after user-liveserver:/home/httpd /home

    Is there a way to make a script wait for one RSYNC process/backup to finish ?
    And if its done it will process another drive backup ...

    Like setting up an queue ?

    Help is highly appreciated.
    thx

  2. #2
    Are you doing this in bash?

    Putting a semi colon at the end of a line tells bash to execute that command before proceding to the next.

    So you could have
    Code:
    rsync -e ssh -avzn --delete-after user-liveserver:/home/httpd /home ;
    rsync -e ssh -avzn --delete-after user-liveserver:/home/httpd /tmp ;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •