Re: Error compressing tar file

2014-03-02 Thread Steven D'Aprano
On Sun, 02 Mar 2014 17:11:19 -0800, Mike wrote: > without ")" i have the same sintax error: > > [root@master ~]# python bkp_db.py > Traceback (most recent call last): > File "bkp_db.py", line 19, in > tar = tarfile.open(dumpfile + '.tar.gz','w:gz') > TypeError: unsupported operand type(s)

Re: Error compressing tar file

2014-03-02 Thread Mike
El domingo, 2 de marzo de 2014 21:38:49 UTC-3, Mike escribió: > Hello, > > I have the script that make a backup file (this process is ok), but now i > wish compress the file on tar file format. But i have problem syntax in the > line of the tar function. > > > > The error is > > > > [ro

Re: Error compressing tar file

2014-03-02 Thread Joel Goldstick
On Mar 2, 2014 7:41 PM, "Joel Goldstick" wrote: > > > On Mar 2, 2014 7:40 PM, "Mike" wrote: > > > > Hello, > > I have the script that make a backup file (this process is ok), but now i wish compress the file on tar file format. But i have problem syntax in the line of the tar function. > > > > Th

Re: Error compressing tar file

2014-03-02 Thread Joel Goldstick
On Mar 2, 2014 7:40 PM, "Mike" wrote: > > Hello, > I have the script that make a backup file (this process is ok), but now i wish compress the file on tar file format. But i have problem syntax in the line of the tar function. > > The error is > > [root@master ~]# python bkp_db.py > File "bkp_db

Error compressing tar file

2014-03-02 Thread Mike
Hello, I have the script that make a backup file (this process is ok), but now i wish compress the file on tar file format. But i have problem syntax in the line of the tar function. The error is [root@master ~]# python bkp_db.py File "bkp_db.py", line 19 tar = tarfile.open(dumpfile)+'