01-26-2010
I'll make the suggestion that you use the backup package "microlite edge" for a more reliable backup solution with the ability to exclude files and directories. And it has the ability to verify the backups.
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
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)
Discussion started by: kymberm
7 Replies
2. UNIX for Dummies Questions & Answers
I want 'tar' to exclude certain dir's.
tar cvf ............. ............ does the whole lot, but I want to exclude the 'log' dirs. (6 Replies)
Discussion started by: kuultak
6 Replies
3. UNIX for Dummies Questions & Answers
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)
Discussion started by: leemjesse
1 Replies
4. Solaris
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)
Discussion started by: Tirmazi
2 Replies
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: ust
2 Replies
6. UNIX for Dummies Questions & Answers
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)
Discussion started by: rakeshkumar
1 Replies
7. Shell Programming and Scripting
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)
Discussion started by: ajayyadavmca
2 Replies
8. Shell Programming and Scripting
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)
Discussion started by: majest
12 Replies
9. UNIX for Dummies Questions & Answers
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)
Discussion started by: redologger
2 Replies
10. Solaris
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
expire_backups
EXPIRE_BACKUPS(1) S3QL EXPIRE_BACKUPS(1)
NAME
expire_backups - Intelligently expire old backups
SYNOPSIS
expire_backups [options] <age> [<age> ...]
DESCRIPTION
The expire_backups command intelligently remove old backups that are no longer needed.
To define what backups you want to keep for how long, you define a number of age ranges. expire_backups ensures that you will have at least
one backup in each age range at all times. It will keep exactly as many backups as are required for that and delete any backups that become
redundant.
Age ranges are specified by giving a list of range boundaries in terms of backup cycles. Every time you create a new backup, the existing
backups age by one cycle.
Example: when expire_backups is called with the age range definition 1 3 7 14 31, it will guarantee that you always have the following
backups available:
1. A backup that is 0 to 1 cycles old (i.e, the most recent backup)
2. A backup that is 1 to 3 cycles old
3. A backup that is 3 to 7 cycles old
4. A backup that is 7 to 14 cycles old
5. A backup that is 14 to 31 cycles old
Note If you do backups in fixed intervals, then one cycle will be equivalent to the backup interval. The advantage of specifying the age
ranges in terms of backup cycles rather than days or weeks is that it allows you to gracefully handle irregular backup intervals.
Imagine that for some reason you do not turn on your computer for one month. Now all your backups are at least a month old, and if
you had specified the above backup strategy in terms of absolute ages, they would all be deleted! Specifying age ranges in terms of
backup cycles avoids these sort of problems.
expire_backups usage is simple. It requires backups to have names of the forms year-month-day_hour:minute:seconds (YYYY-MM-DD_HH:mm:ss) and
works on all backups in the current directory. So for the above backup strategy, the correct invocation would be:
expire_backups.py 1 3 7 14 31
When storing your backups on an S3QL file system, you probably want to specify the --use-s3qlrm option as well. This tells expire_backups
to use the s3qlrm command to delete directories.
expire_backups uses a "state file" to keep track which backups are how many cycles old (since this cannot be inferred from the dates con-
tained in the directory names). The standard name for this state file is .expire_backups.dat. If this file gets damaged or deleted,
expire_backups no longer knows the ages of the backups and refuses to work. In this case you can use the --reconstruct-state option to try
to reconstruct the state from the backup dates. However, the accuracy of this reconstruction depends strongly on how rigorous you have been
with making backups (it is only completely correct if the time between subsequent backups has always been exactly the same), so it's gener-
ally a good idea not to tamper with the state file.
OPTIONS
The expire_backups command accepts the following options:
--quiet
be really quiet
--debug
activate debugging output
--version
just print program version and exit
--state <file>
File to save state information in (default: ".expire_backups.dat")
-n Dry run. Just show which backups would be deleted.
--reconstruct-state
Try to reconstruct a missing state file from backup dates.
--use-s3qlrm
Use s3qlrm command to delete backups.
EXIT STATUS
expire_backups returns exit code 0 if the operation succeeded and 1 if some error occured.
SEE ALSO
expire_backups is shipped as part of S3QL, http://code.google.com/p/s3ql/.
COPYRIGHT
2008-2011, Nikolaus Rath
1.11.1 August 27, 2014 EXPIRE_BACKUPS(1)