Displaying 1 result from an estimated 1 matches for "snaprun".
Did you mean:
snapin
2014 Aug 05
1
was code added to detect or die on sighup recently?
...to run the snapper script (which calls
rsync)
and send it's log to a file and allow it to be automatically monitored...
#!/bin/bash
: {HOME:-/home/law}
declare -i output_wanted=1
export ld=$HOME/var/log PATH=$HOME/bin:$PATH
export PERL5OPT='-Mutf8 -CSA -I/home/law/bin/lib'
function snaprun () {
cd "$ld" && {
if [[ -e snap.log ]]; then
mv "snap.log" "snap.log-$(ShortDateTime)"
#7z a snap.log.7z snap.log-[0-9]*.[
fi
declare cmd="nice -19 ionice -c3 snapper.pl -X x /home"
{
echo "" >"$l...