Click to See Complete Forum and Search --> : tar switch?


Ops
05-16-2004, 10:15 AM
is there a tar switch that MOVES files into a .tar file and not just copies it? There is a switch that copies the files and removes the old files but I dont want to do that.

I want to .tar up every .tgz package in /var/swaret and then compress...........shred it.

I dont know if people understand what im saying, but basically I want to make it so that there was practically no existance of swaret ever being on my system.......Im going to use the shred -n 500 -uvz switch on the compressed file that contains the packages from /var/swaret......

hard candy
05-16-2004, 10:33 AM
You can use "swaret --purge" to clean up the /var/swaret directory and then use "removepkg swaret" to get rid of the rest.

sharth
05-16-2004, 11:04 AM
Just as a side note, shread only works on non journal file systems, which is about ext2.

Ops
05-16-2004, 02:43 PM
Originally posted by hard candy
You can use "swaret --purge" to clean up the /var/swaret directory and then use "removepkg swaret" to get rid of the rest.

No, I dont want this, it simply deletes it, I want to shred everything.

Originally posted by sharth
Just as a side note, shread only works on non journal file systems, which is about ext2.

shred works fine with ext3

sharth
05-16-2004, 08:46 PM
Originally posted by Ops
shred works fine with ext3 shred works just as well as rm does on journalized file systems.

From the man page...

CAUTION: Note that shred relies on a very important assumption: that the filesystem overwrites data in place. This is the traditional way to do things, but many modern filesystem designs do not satisfy this assumption. The following are examples of filesystems on which shred is not effective:
* log-structured or journaled filesystems, such as those supplied with AIX and Solaris (and JFS, ReiserFS, XFS, Ext3, etc.)
* filesystems that write redundant data and carry on even if some writes fail, such as RAID-based filesystems
* filesystems that make snapshots, such as Network Appliance's NFS server
* filesystems that cache in temporary locations, such as NFS version 3 clients
* compressed filesystems

In addition, file system backups and remote mirrors may contain copies of the file that cannot be removed, and that will allow a shredded file to be recovered later.

Ops
05-16-2004, 10:18 PM
hmm I see, thanks alot.