[Borgbackup] Record logs
Maurice Libes
maurice.libes at osupytheas.fr
Thu Jul 13 08:39:30 EDT 2017
Le 13/07/2017 à 14:22, Contact DEV & d'Adam a écrit :
> :-D ok - some improvement on the way...
> Well, -v is ok ,but i'd like to have a .log file with all the messages
> in it for a backup report.
> Any idea ?
may be I don't understand what you want , but
to gather the logs into a logfile, you just have to redirect the
standard output of each borg command
no?
like that
$BORG create \
-v --stats \
$COMPRESSION \
$BORG_ARCHIVE \
$REP_ASAUVEGARDER \
--exclude '/home/*/.cache' \
>> ~/BORG/backup.log 2>&1
$BORG prune -v --list --info --keep-daily=7 --keep-weekly=2 \
$BORG_REPOSITORY --prefix ${hostname} \
>>~/BORG/backup.log 2>&1
etc.
> Le 13/07/2017 à 13:03, Thomas Waldmann a écrit :
>>>>> Is there a simple way to invoque in the commande line a log file
>>>>> where
>>>>> logs would be detailed.
>>>>>
>>>>> I've looking for this in the doc, but couldn't find the right trick.
>>>> -v ?
>> -v is the option for verbose. querying the version is --version, btw.
>>
>>
>>
>
> _______________________________________________
> Borgbackup mailing list
> Borgbackup at python.org
> https://mail.python.org/mailman/listinfo/borgbackup
--
M. LIBES
Service Informatique OSU Pytheas - UMS 3470 CNRS
Batiment Oceanomed
Campus de Luminy
13288 Marseille cedex 9
Tel: 04860 90529
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2935 bytes
Desc: Signature cryptographique S/MIME
URL: <http://mail.python.org/pipermail/borgbackup/attachments/20170713/f7ef43e1/attachment.bin>
More information about the Borgbackup
mailing list