:: Re: [DNG] How to mount NTFS
Página Principal
Delete this message
Reply to this message
Autor: Haines Brown
Data:  
Para: dng
Assunto: Re: [DNG] How to mount NTFS
On Fri, Aug 07, 2020 at 06:34:04PM +0100, g4sra wrote:

> Check your logs for USB Bus resets, any device on the USB bus can
> cause these which will add seconds for every occurrence (a USB TV
> stick can make a backup crawl).


Nothing in logs. But I don't unserstand this DBus syslog message that
comes up every second or so:

Aug 7 09:29:26 engels brltty[720]: DBus error: send message:
org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not
provided by any .service file

> Post your backup script for others to look over.



#!/bin/bash
a="============================================="
b="Start: "
c=$(date)
mount /mnt/backup &
find /mnt/backup/20* -maxdepth 0 -type d | sort -n | head -n 1 | xargs rm -rfv
sleep 3s
dirName=`date +%Y.%m.%d`
mkdir /mnt/backup/"$dirName"
find / -print | egrep "^/mnt^/var^/mail|^/home|^/etc|^/opt|^/storage|^/info|^/usr/local" | cpio -pdmuv /mnt/backup/"$dirName" 2>&1 | cat -vT
d="End:"
e=$(date +%H:%M:%S)
f="Disk used: "
g=`df /mnt/backup | tail -n 1 | awk '{print $5}'`
printf "$a \n $b $c \n $d $e \n $f %s\n" "$g" >> /home/haines/.backup.log


--
Haines Brown