Tarfile module error

2005-01-21 Thread Beowulf
Hello, I'm using Python to automate admin tasks on my job. We use Windoze 2000 as desktop platform. When executing this daily backup scripts I get the following error: Traceback (most recent call last): File C:\UTILS\backup.py, line 8, in ? TarFileBackup = tarfile.open(NewBackupFilename,

Re: Tarfile module error

2005-01-21 Thread Kartic
Your NewBackupFilename contains : which is not a valid character in a filename in Windows. You could do something like this: NewBackupFilename = DirBackup + '\\' + '%s' % str(datetime.today()).replace(':', '-') + '.tar.bz2' NewBackupFilename 'c:skpdc01Backups\\2005-01-21