# Script workflow ```flow st=>start: Start e=>end: End ping=>subroutine: Ping Site1 multiple times check_ping=>condition: Is Site1 down? rewrite_dns=>operation: Remove redirection to Site1 start_sync=>operation: Start storage sync from Site2 to Site1 ping2=>subroutine: Ping Site1 check_ping2=>condition: Is Site1 up? restore_dns=>operation: Restore redirection to Site1 delay_3=>subroutine: Wait a bit check_sync=>condition: Is storage sync done? stop_sync=>operation: Stop storage sync from Site2 to Site1 st->ping->check_ping->rewrite_dns->start_sync->ping2->check_ping2->restore_dns->delay_3->check_sync->stop_sync->ping check_ping(no, left)->ping check_ping(yes)->rewrite_dns check_ping2(no, left)->ping2 check_ping2(yes)->restore_dns check_sync(no, left)->check_sync check_sync(yes)->stop_sync ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up