First, if I stop a tar process, will it resume from where it left off or will it have to go through all the directories again (a lot of directories and files).
Second, am I correctly "disown"ing this process?
I ssh'd into my linux (ubuntu) server.
I started a process with 'tar -cf /mnt/backup.tar /var/www'
Several hours later, the process is still running and I need to shut my desktop computer off.
I pressed Ctrl+Z to suspend the process,
then ran 'bg' to resume it in background.
then ran 'disown -h tar'
then ran 'ps faux'
root 8760 0.0 0.1 8964 3036 ? Ss Aug21 0:21 \_ sshd: root@pts/0 root 8762 0.0 0.1 4408 1880 pts/0 Ss+ Aug21 0:00 | \_ -bash root 23184 0.2 0.0 3708 1072 pts/0 D Aug24 3:30 | \_ tar -cf /mnt/backup.tar www/
I see the tar command and it's "STAT" column shows D. Does that mean detached?
I wasn't quite sure exactly what the "job" was, I assumed "tar".
Please let me know if what I am doing is correct and is it now safe to logout and close the ssh session. Would hate to have to restart this process.
Also note, this question has been somewhat answered here: http://serverfault.com/questions/24425/can-i-nohup-screen-an-already-started-process
However, I am extending the question as I was a little confused about using disown and what a "job" actually is.