I've tried the -v option but my logs come out to be 5-10Mb in size
(depending on the server).  It just lists the file names being backed up.

<quote who="James Gibbon">
>
> "AragonX" wrote:
>> I'm using tar to do nightly backups.  I would like to get some
>> useful information out of it to put in a log file.  I would like
>> to know if the backup completed successfully, how big the backup
>> was and what files had to be excluded.  Does anyone have any
>> ideas?
>>
>
> You might use the 'v' option to list the files being archived, and
> redirect that, along with stderr, to the logfile.  Something like
>
> tar cvf /dev/st0 ./dir_to_backup >/tmp/backuplog 2>&1
>
> .. will work in bash or ksh.


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to