#!/bin/bash
# /usr/local/bin/dar2dvd
# http://crystalfaeries.net/posix/bin/dar2dvd
# celeste:crystalfaery 2013-05-21 02:23:17+00:00
#
sudo mount -a
cd /var/tmp
# sudo nice ionice -c 3 dar -c `hostname`.`now|sed 's/ .*$//'` -R /var/cache/rsnapshot/hourly.0/`hostname`/ -K `cat /etc/darkey` --exclude-from-file=/etc/darexclude --slice 200000000 |& tee `hostname`.`now|sed 's/ .*$//'`.txt
sudo nice dar -c `hostname`.`now|sed 's/ .*$//'` -R /var/cache/rsnapshot/hourly.0/`hostname`/ -K `cat /etc/darkey` --exclude-from-file=/etc/darexclude --slice 200000000 |& tee `hostname`.`now|sed 's/ .*$//'`.txt
cd /
# sudo nice ionice -c 3 du -s `cat /etc/darexclude` 2> /dev/null | sort -rn > /var/tmp/`hostname`.`now|sed 's/ .*$//'`.excluded.txt
sudo nice du -s `cat /etc/darexclude` 2> /dev/null | sort -rn > /var/tmp/`hostname`.`now|sed 's/ .*$//'`.excluded.txt
cd /var/tmp
vi `hostname`.`now|sed 's/ .*$//'`.excluded.txt `hostname`.`now|sed 's/ .*$//'`.txt
syntax highlighted by Code2HTML, v. 0.9.1