DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: How to TAR all the files and dir to a single tar file

  1. #1
    Join Date
    Jun 2000
    Location
    chennai,tamil nadu,india
    Posts
    159
    Hi guys,
    Can you tell me how to tar all the files and subdirectories under a directory.

    If i am in XX dir,i need to tar all the files/dir toa ir file(i mean copy all the files/dir to a tar file).

  2. #2
    Join Date
    May 2002
    Posts
    2,645
    see posting in database administration

  3. #3
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    bash$ tar -cvf test_tar.tar *
    SlideLib/
    SlideLib/test_model.sql
    SlideLib/trg_new_slide.sql
    SlideLib/sec_pac.sql
    SlideLib/cng_user.sql
    SlideLib/xml_pack/
    SlideLib/xml_pack/xml_pack_1.sql
    SlideLib/tree_pack/
    SlideLib/tree_pack/Get_Attr_ID.sql
    SlideLib/tree_pack/del_cat_v2.sql
    SlideLib/tree_pack/del_tree.sql
    SlideLib/ins_old_data.sql
    SlideLib/slide_production.sql
    SlideLib/user_add_tbl.sql
    SlideLib/reset_seq.sql
    SlideLib/test/
    dump_csv.sql
    medimmune/
    medimmune/avg_rating.sql
    medimmune/summary.sql
    rac_test.java
    test_load.ctl
    test_load.log

  4. #4
    Join Date
    Jan 2002
    Posts
    57
    Keep in mind that using * in the directory you are tarring up will not include any hidden dot files in that directory, at least not with the tar shipped with AIX 4.3.

    --
    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width