Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to tar a huge directory (with about 600GB) and sometimes my SSH conection drops and I need to execute the tar code again and my linux overwites the previous file beginning all the tar again.

Is there some parameter that allows my tar file to be resumed after some problem?

share|improve this question
Run your command in "detach terminal" with nohup : nohup command </dev/null & – LinuxDevOps Apr 23 '14 at 20:04
Also you could use the 'at now' command if the at capability is enabled. – mdpc Apr 23 '14 at 22:00
man will find it quite useful – Grant Apr 23 '14 at 22:28

Is there some parameter that allows my tar file to be resumed after some problem?


What you should do, though, is run your command from within a terminal multiplexer like screen or tmux. That way if your connection drops, the process keeps running.

share|improve this answer
Or use nohup command – Brian Apr 23 '14 at 20:04
nohup command will keep the proccess after I close my SSH window? I use putty, so after I close putty it will keep the process? – amandanovaes Apr 23 '14 at 20:23
@amandanovaes This answer explains what happens when your terminal disconnects. (shameless self plug) – Andrew B Apr 23 '14 at 20:28
I dont know what is a terminal multplexer! That's why I think that maybe nohup is a much better solution but I want to make sure I understand it. – amandanovaes Apr 23 '14 at 20:47
@amandanovaes - if you're doing linux sysadmin, you need to know what screen and/or tmux do. They are essential tools in your sysadmin toolbox. For may other reasons than just this specific use case. – EEAA Apr 23 '14 at 20:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.