Carl Johnson on 30 Aug 2013 07:53:39 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] tar/pigz question


Along the lines of yesterday's tar discussion, I have been working on diffusing a.... err ummm....I mean... (ahem). I've been working on a backup routine for a few days now. I have an issue with a part of this routine that I'm not sure how to resolve. Here's what I'm doing......

/bin/tar -c -v --use-compress-program=pigz /mnt/drive_z/ | /usr/bin/pigz > /mnt/backupLUN09_SAN/file-server-backup--`date +%m_%d_%y`--.tar.gz

So far I've that command. That'll pack up things in /mnt/drive_z/ and send 'em over to my SAN at /mnt/backupLUN09_SAN/ right? If I got that right, great; progress. Problem is though, I'd like to generate a list of everything tar is packing up for me. I've considered using "| packing-list-filename.txt>" and ">> packing-list-filename.txt>" but they didn't do what I wanted. So PLUG, my question is... how do I do it? Do I pipe to "tee" instead? Do I " > 2&1 > packing-list-filename.txt? Help me out here.....
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug