[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Meaningful tar logs



"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.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]