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 onetask = ['--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
_______________________________________________ rdiff-backup-users mailing list at [email protected] http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
