tar -czf output.tar.gz dir1 dir2 ...

Luke Francl <fran0382 at tc.umn.edu> writes:

> I back up my home directory every couple of months (yeah, yeah, I should
> do it more often). This means I always have to relearn how to use tar,
> since I forget in the mean-while.
> 
> What is the best way to tar gz a directory? I'm doing
> 
> tar -cz dir > dir-2000-08-18.tar.gz
> 
> Do you have to use the redirection, or is there a way to make tar write
> output to a file?
> 
> Thanks,
> 
> Luke
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org
> For additional commands, e-mail: tclug-list-help at mn-linux.org

-- 
Jon Schewe | http://eggplant.mtu.net/~jpschewe
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39


---------------------------------------------------------------------
To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org
For additional commands, e-mail: tclug-list-help at mn-linux.org