[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[rdiff-backup-users] rdiff-backup in own python script
From: |
Karel Ziegler | ET NETERA |
Subject: |
[rdiff-backup-users] rdiff-backup in own python script |
Date: |
Thu, 10 Feb 2011 10:16:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 |
Hello,
How can I re-initialising rdiff-backup variables after running one
task in own python script, see example below.
#!/usr/bin/python
from rdiff_backup.Main import Main as backup
# backup task one
task = ['--exclude', '/data_dir1', '--exclude', '/data_dir2',
'--exclude', '/mnt', '/', '/backup']
backup(task)
print 'TASK 1'
# backup task two
task = ['/mnt/data', '/backup/data']
backup(task)
When running this script, I got following error:
TASK 1
Fatal Error: Fatal Error: The file specification
'/data_dir1'
cannot match any files in the base directory
'/mnt/data'
Useful file specifications begin with the base directory or some
pattern (such as '**') which matches the base directory.
Thank you for your help
--
Karel Ziegler
Linux Administrátor
ET NETERA | smart e-business
[a] Milady Horákové 108, 160 00 Praha 6
[m] +420 602 603 947 [i] www.etnetera.cz
~
[www.ifortuna.cz | www.o2.cz | www.datart.cz ]
[www.skodaplus.cz | www.nivea.cz | www.allianz.cz]
Created by ET NETERA | Powered by jNetPublish
smime.p7s
Description: S/MIME Cryptographic Signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [rdiff-backup-users] rdiff-backup in own python script,
Karel Ziegler | ET NETERA <=