Re: [Bacula-users] Restore from command line

2008-02-13 Thread le dahut
cat file.txt | bconsole -c /etc/bacula/bconsole.conf seems to work. So I'll generate it using templates and file lists. But is there a way to write it in a file included in /etc/bacula/bacula-dir.conf and then : echo -e "reload\n" | bconsole echo -e "restore myrestore\n" | bconsole which seems cl

Re: [Bacula-users] Restore from command line

2008-02-13 Thread Rich
On 2008.02.13. 12:53, le dahut wrote: > but : > 'unmark /home/myfolder' > 'unmark home/myfolder' > don't work that's unfortunate, if this is the latest version of bacula, it would be a welcome improvement > 'cd home' > 'unmark myfolder' > works > > so 'unmark $(cat file)' doesn't work (I've tes

Re: [Bacula-users] Restore from command line

2008-02-13 Thread le dahut
but : 'unmark /home/myfolder' 'unmark home/myfolder' don't work 'cd home' 'unmark myfolder' works so 'unmark $(cat file)' doesn't work (I've tested it to be sure and confirm). Rich a écrit : > unmark $(cat file) ? > if i understood the question :) > > On 2008.02.13. 12:14, le dahut wrote: >>

Re: [Bacula-users] Restore from command line

2008-02-13 Thread Rich
unmark $(cat file) ? if i understood the question :) On 2008.02.13. 12:14, le dahut wrote: > Hello, > > I'm launching 'restore' from command line with : > echo -e "restore all\n5\ncd var\ncd lib\nunmark > ldap\ndone\n2\nyes\n"|bconsole -c /etc/bacula/bconsole.conf > > As you can see, I unmark s

[Bacula-users] Restore from command line

2008-02-13 Thread le dahut
Hello, I'm launching 'restore' from command line with : echo -e "restore all\n5\ncd var\ncd lib\nunmark ldap\ndone\n2\nyes\n"|bconsole -c /etc/bacula/bconsole.conf As you can see, I unmark some files, but I've more files to unmark and this way looks very ugly to me. Is there a way to specify al