File: darrc_sample

package info (click to toggle)
dar 2.8.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,024 kB
  • sloc: cpp: 86,219; sh: 6,978; ansic: 895; makefile: 489; python: 242; csh: 115; perl: 43; sed: 16
file content (55 lines) | stat: -rw-r--r-- 832 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
######
# this is an example of what could be a batch file
# (given to -B option), a /etc/darrc and a $HOME/.darrc file
# reminds that it is a simple example...
#


all:
# make terminal bell when user action is requested
-b

create:
# a list of file to not try to compress
-X "*_all_*.*.dar"
-X "*_diff_*.*.dar"
-X "*_inc_*.*.dar"
-Z "*.mpg"
-Z "*.MPG"
-Z "*.jpg"
-Z "*.JPG"
-Z "*.gz"
-Z "*.tgz"
-Z "*.bz2"
-Z "*.zst"
-Z "*.tbz"
-Z "*.mp3"
-Z "*.mpeg"
-Z "*.zip"
-Z "*.dar"

# create empty dir for excluded directories
-D

-R /

# we don't save these directories
-P tmp
-P var/tmp
-P mnt
-P proc
-P dev/pts

# here we say we don't want to save dar files
-X "*.*.dar"

# we pause before starting a new slices
-p

# and we use gzip compression
-z

default:
# if no action is given then show the version
# in place of the usage help
-V