Re: [CentOS] Another Tar stopper

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



Will McDonald wrote:
On 12/09/06, Barry L. Kline <blkline@xxxxxxxxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Moskowitz wrote:

> So I switched over to init 3 and ran the tar process from the text session.
>
> Still got this error.
>
> How do I figure out what is wrong and how do I find any similar
> show-stoppers?
>

That error is frequently caused by a lock or with the file changing
while being backed up.  Use the verbose option with tar, then scan down
through the log to find out what happened.   If you have a non-fatal
error early on in the execution of tar you'll receive notice of it at
the end of execution.

I'd send STDOUT and STDERR to separate logs for brevity's sake.
Something like...

tar czvf $destfile $tobetarred > /tmp/tarlog.std 2> /tmp/tarlog.err
Wait a sec here. I am piping the tar to stdout (tar czvfO ) then sending that through to SSH ( | SSH ....) to be cated into the actual file ( cat > archive.tgz):

tar -cpvzO / --exclude-from=/home/not-file | ssh user@ipaddrs "cat > backup.tgz"

So where is the verbose going to so I see it on the screen?  STDERR?

And still either how do I unlock any locked files left locked by X? And/or just tar them with the lock?


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux