Sunday 15 April 2012

linux - Need help for shell script to copy multiple dir and packing into tar -



linux - Need help for shell script to copy multiple dir and packing into tar -

im amateur in script shell need help shell cripting issue :

i have 2 directory within path /home/backup : csc dfg

and each folder (csc & dfg) have these dir within : weekly , monthly

and want re-create files , packing 1 file .tar within weekly dir > monthly dir

so question : hows script issue?

thanks

i'm not sure understand question, if want create tar file, here command (with verbose):

tar -cvf backup.tar /home/backup/*

and if need compress it, assume want do:

gzip backup.tar

linux shell tar

No comments:

Post a Comment