If i have a bunch of directories that i normally backup with this:
tar cvhf /dev/rmt/0 /export/home
How can i exclude certain subdirectories under the /export/home?
tar cvhf /dev/rmt/0 /export/home | grep -v 'test' ? will that exclude anything named test, and any subdirectories under test? (7 Replies)
OS: SunOS perfs01 5.8 Generic_117350-23 sun4u sparc SUNW,UltraAX-i2
I want to tar a directory, but there are subdirectoires I want to exclude. Does anyone know how to do it?
Please help.
thanks. (1 Reply)
I have solaris 8, I want to create tar for all files under this directory structure
#/export/home/atg/Dynamo/home
There is a subdirectory under this tree called servers/supersds/logs
I want to exclude logs subdirectory so I created exclude list which contains
servers/supersds/logs
But tar... (2 Replies)
If use tar file from a directory , how to exclude a sub-directory in this directory ?
ll
drw-r--r-- 1 root root 4096 Oct 12 11:58 b
drw-r--r-- 1 root root 4096 Oct 12 10:54 c
drwxr-xr-x 2 root root 4096 Oct 12 11:57 d
drw-r--r-- 1 root root 4096 Oct 12 10:54 d
eg . I want to tar all files... (2 Replies)
Hi
Is there any way to exclude the absolute path while using Tar , like am using the command
# tar cvf mytar.tar /home/rakesh/myback/
when i extract the mytar.tar then it shows as
/home
/rakesh
... (1 Reply)
i have issue with tar, let me explain
when i run below command it works perfectly as usual.
tar -cvf /tmp/temp.tar --exclude="exclusion expression" dir
my requirement is --exclude="exclusion expression" will come from another variable.
so when i execute below command:
tar -cvf... (2 Replies)
I'm having trouble understanding the exclude option in tar. From some web sites, it seems one is able to exclude several strings by enclosing them in curly brackets. However it seems to be "random" what gets excluded when using the curlies.
I've been using the exclude-from=myfile option in a... (12 Replies)
hi,
i am trying to use a exclude file to exclude some file directories while making a tar archive. This is my command:
tar -pcvf orahome10gR2.tar.gz db_1 -X /home/oracle/excludeFile.txt /home/oracle/
when i execute it, it seem to be tar-ing. But once is done, i cd to /home/oracle and could... (2 Replies)
I have solaris 10 and my following exclude is not working:
tar -cvf /export/home/backups/$audit-Data-$useday.bkup.tar /Data --exclude=/Data/ssg/output
a /Data/ssg/output/ 0K
a /Data/ssg/output/ssg-ported508.txt 107142K
a /Data/ssg/output/ssg-ported747.txt 1801K
a... (4 Replies)
Discussion started by: mrn6430
4 Replies
LEARN ABOUT DEBIAN
bup-margin
bup-margin(1) General Commands Manual bup-margin(1)NAME
bup-margin - figure out your deduplication safety margin
SYNOPSIS
bup margin [options...]
DESCRIPTION
bup margin iterates through all objects in your bup repository, calculating the largest number of prefix bits shared between any two
entries. This number, n, identifies the longest subset of SHA-1 you could use and still encounter a collision between your object ids.
For example, one system that was tested had a collection of 11 million objects (70 GB), and bup margin returned 45. That means a 46-bit
hash would be sufficient to avoid all collisions among that set of objects; each object in that repository could be uniquely identified by
its first 46 bits.
The number of bits needed seems to increase by about 1 or 2 for every doubling of the number of objects. Since SHA-1 hashes have 160 bits,
that leaves 115 bits of margin. Of course, because SHA-1 hashes are essentially random, it's theoretically possible to use many more bits
with far fewer objects.
If you're paranoid about the possibility of SHA-1 collisions, you can monitor your repository by running bup margin occasionally to see if
you're getting dangerously close to 160 bits.
OPTIONS --predict
Guess the offset into each index file where a particular object will appear, and report the maximum deviation of the correct answer
from the guess. This is potentially useful for tuning an interpolation search algorithm.
--ignore-midx
don't use .midx files, use only .idx files. This is only really useful when used with --predict.
EXAMPLE
$ bup margin
Reading indexes: 100.00% (1612581/1612581), done.
40
40 matching prefix bits
1.94 bits per doubling
120 bits (61.86 doublings) remaining
4.19338e+18 times larger is possible
Everyone on earth could have 625878182 data sets
like yours, all in one repository, and we would
expect 1 object collision.
$ bup margin --predict
PackIdxList: using 1 index.
Reading indexes: 100.00% (1612581/1612581), done.
915 of 1612581 (0.057%)
SEE ALSO bup-midx(1), bup-save(1)BUP
Part of the bup(1) suite.
AUTHORS
Avery Pennarun <apenwarr@gmail.com>.
Bup unknown-bup-margin(1)