Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
4  
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 screen...you will find it quite useful –  Grant Apr 23 '14 at 22:28

1 Answer 1

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

Nope.

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
3  
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
4  
@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

 
discard

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.