Re: How to tar a file while it's chaging

2009-12-18 Thread Tony Nelson
On 09-12-18 14:17:54, Olaf Reitmaier Veracierta wrote: > Hi, > > In a backup shell script I tar a file but sometimes it's chaging > because is a log file (plain/text). > > While taring a get this error (warning) message: > > /bin/tar: /var/log/postgresql/postgresql-8.1-main.log: file changed >

Re: How to tar a file while it's chaging

2009-12-18 Thread lee
On Sat, Dec 19, 2009 at 02:47:54PM +1930, Olaf Reitmaier Veracierta wrote: > > ¿There is a way to tar a file but ignore if the file is modified or may be a > way to trunk the file? You could exclude it from being put into the archive at all, or exclude it but make a copy and put the copy into the

How to tar a file while it's chaging

2009-12-18 Thread Olaf Reitmaier Veracierta
Hi, In a backup shell script I tar a file but sometimes it's chaging because is a log file (plain/text). While taring a get this error (warning) message: /bin/tar: /var/log/postgresql/postgresql-8.1-main.log: file changed as we read it The command return with a non-zero value (an error) but I c