"Fossies" - the Fresh Open Source Software Archive

Member "safekeep-1.5.1/samples/sample.backup" (16 Nov 2020, 2406 Bytes) of package /linux/misc/safekeep-1.5.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <!-- the client backup id -->
    2 <backup id="my_workstation" enabled="true">
    3 
    4   <!-- the client backup host, the user under which the servers will connect,
    5        the SSH keys used for launching "safekeep -c" and "rdiff-backup" -->
    6   <host
    7     name="my_box.corp.com" user="root" nice="10"
    8     key-ctrl="/home/jdoe/.ssh/backup_id_dsa"
    9     key-data="/home/jdoe/.ssh/backup2_id_dsa"
   10   />
   11 
   12   <!-- rate limit bandwidth (kB/s) on a client basis -->
   13   <bandwidth
   14     overall="80"
   15     download="50"
   16     upload="50"
   17   />
   18 
   19   <!-- location where the backed up data will be stored on the server
   20        and for how long (s=sec, m=min, h=hours, D=days, W=weeks, M=months, or Y=years) -->
   21   <repo
   22     path="./data"
   23     retention="10D"
   24   />
   25 
   26   <!-- set options affecting execution of rdiff-backup for this host -->
   27   <options>
   28 
   29     <!-- An option to run a different version of rdiff-backup locally, -->
   30     <!-- say for compatibility with older systems -->
   31     <!-- (remove the comments if required) -->
   32     <!-- <rdiff-backup exec_local="rdiff-backup-1" /> -->
   33 
   34   </options>
   35 
   36   <!-- settings for database dump and for volume snapshot -->
   37   <setup>
   38 
   39     <!-- database type ("postgres" or "mysql"), user with backup rights,
   40          location of the dump file on the client host, and flag to remove
   41 	 or not the dump file after the backup is done -->
   42     <dump
   43       type="postgres"
   44       db="dbname"
   45       user="foobar"
   46       file="/var/backup/dumps/mydata"
   47       cleanup="true"
   48     />
   49 
   50     <!-- what volume is to be snapshoted (device location) and the size
   51          of the snapshot (unallocated space must exist in the volume group) -->
   52     <snapshot
   53       device="/path/to/volume"
   54       size="500M"
   55     />
   56 
   57     <!-- location of a script to be executed on the client at different
   58         stages of the run.  It is called with three arguments:
   59         the step of the backup, backup id and the backup root directory -->
   60     <script
   61       path="/path/to/script"
   62     />
   63   </setup>
   64 
   65   <!-- data to be backed up -->
   66   <data exclude-fifos="true" exclude-sockets="true">
   67     <!-- each type of tag can be present more than one time -->
   68     <!-- if a database dump was created, it must be added in this section -->
   69     <include path="/home"/>
   70     <exclude path="/home/guest"/>
   71 
   72     <include glob="**/important/"/>
   73     <exclude glob="/home/*/tmp"/>
   74 
   75     <include regexp=".*\.ogg"/>
   76     <exclude regexp=".*\.mp3"/>
   77   </data>
   78 </backup>