File: sample1.txt

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 (90 lines) | stat: -rw-r--r-- 2,360 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#Preface
#--------
#
#Here follows a sample batch file submited by Henrik Ingo (Thanks Henrik ;-) ).
#It is complete for backup but does not use conditional syntax. Over comments
#(lines staring with #) all commands can also take place on the command-line.
#Thus, this is a nice way to discover DAR's features.
#
#                                                            Denis Corbin
###########################################################################


#Execution file for dar (Disc Archiver)
#Sipmly use 'dar -B thisfile' to backup
#This backs up my home machine

#Where to place the backup (somewhere with lots of space)
--create /mnt/win_d/darbackups/my_backup


#General settings

#size of an archive (one slice). 650M fits nicely on CD-R (and RW?)
-s 650M
#compress using bzip
-y
#verbose
-v

#Files not to compress
-Z "*.mp3" -Z "*.avi" -Z "*.mpg" -Z "*.mpeg"
-Z "*.divx" -Z "*.rm" -Z "*.wmv" -Z "*.wma"
-Z "*.asf" -Z "*.ra"

-Z "*.gif" -Z "*.jpg" -Z "*.jpeg" -Z "*.png"

-Z "*.zip" -Z "*.tgz" -Z "*.gzip" -Z "*.bzip"
-Z "*.bzip2" -Z '*.zst' -Z "*.rar" -Z "*.Z"

#Define directories to be backed up
#First give a root
--fs-root /

#Then list directories to back up (relative to fs-root)
#If none are given, everything under root is backed up
#If something is specified, only those are backed up
#just/give/path/like/this
#Exclude directories/files with the --prune option
#--prune not/this

-g etc
-g var/lib
--prune var/lib/rpm
--prune var/lib/urpmi

var/local
var/www
var/ftp
usr/local

-g root
--prune root/RPMS
--prune root/tmp
--prune root/kino
--prune root/Desktop/Trash
--prune root/Desktop/Roskakori
--prune root/.Trash

-g home/hingo
--prune home/hingo/tmp
--prune home/hingo/RPMS
--prune home/hingo/kino
--prune home/hingo/Desktop/Trash
--prune home/hingo/.Trash
--prune home/hingo/nobackup

#Be sure to add quotes around tricky paths, or why not all paths...
"mnt/win_d/My Documents/"
-g mnt/win_d/text/


#End of file
#Use something like this to restore everything:
# dar -x /mnt/win_d/darbackups/SIMSON_backup -R /
#something like this to restore something (etc-subtree):
# dar -x /mnt/win_d/darbackups/SIMSON_backup -R / etc
#And something like this to retrieve a single file to temp
# dar -x /mnt/win_d/darbackups/SIMSON_backup -R /tmp/ etc/httpd/conf/httpd2.conf --flat
#Really looking forward to having ark support for dar!