A simple script to save a file or subdiretory to a gzipped atr file that is moved to my $pack directory. I use this to collect one or more tarballs and then move them all to another machine with the ppack routine.
Usage: savetar doodle N arg1 - name directory or file to tar up and store in pack directory arg2 - run in debug/verbose mode (Y/N)Note that doodle can be a subdirectory or a single file. Here is a typical example where I use this routine to copy a subdirectory to a new location. ote that I do not move the tarball to a new machine, I just use this process to move the subdirectory to a new place.
% ls $pack tar_README.KO_responses.tar.gz tar_tmp.tar.gz % ls acm_reds_sco2019/ binpub/ home_sco/ pack/ scohtm_old/ tmp5_bib/ ACM_reduced_SBsky_June2019/ Desktop/ Installs/ PFC/ SVN/ Usco2019/ acm_SBSKY_badheads/ Dither_Nov2019/ junk.1 play_gimp/ Tacm/ wifi_router/ ACM_work_Oct2019/ Dither_Tests/ Keep/ Public/ Templates/ Work_dssbase/ ACM_work_Sep2019/ Documents/ Keep_ToDO_Lists/ qtest/ TESTDAT/ anaconda2/ Downloads/ KO_interview/ RA_wiki/ tmp/ Ann_Reviews/ fpa/ Last.Backup README.KO_responses tmp2/ AUTO_match_for_wcs/ FPA_work/ LaTex_Examples/ scohtm/ tmp3/ % savetar tmp2 N % ls $pack tar_README.KO_responses.tar.gz tar_tmp2.tar.gz tar_tmp.tar.gz Now I unpack the tar file in a new location % cd /media/sco/DataDisk1/sco/work % tar xvzf $pack/tar_tmp2.tar.gz % ls tmp2/ % ls tmp2 README tmp/ Recall that I can always use the "cpac" utility to clean out the pack directory: % cpac Usage: cpac (clear the pack directory) % ls $packThis is different from most of my SAVE routines in that it only packs small data sets and does no perform other sorts of things like creat log files or reestablish a home page, etc....