Run rsync even not connected

Joachim Otahal (privat) Jou at gmx.net
Thu Apr 12 13:36:15 MDT 2012


it has not been mentioned: nohup !
screen is a bit complicated if you never used it. It only makes sense if 
you want to check back later and see life what is going on.
at or cron would be my last restort.

nohup would be my choice
nohup (you command and options) &

Example:
x at x:~> nohup ls -la &
[1] 12865
x at x:~> nohup: ignoring input and appending output to `nohup.out'
[1]+  Done                    nohup ls -la

You can do a tail -f on nohup.out after you started the job to see what 
it would output on the screen.

Other example:
nohup (your command and options) >> log.rsync 2>>&1 &
will output stdout and stderr to the log.rsync

regards,

Joachim Otahal

Chris Arnold schrieb:
> I hopethis hope this makes sense. How do you make rsync run even when not physically connected to the server? In other words, I run rsync from the terminal via vnc and when I log out of the connection, rsync stops running. Is there a script or something I can use?
>
> Sent from my iPhone



More information about the rsync mailing list