repo.or.cz
/
gruta.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
The old list of stories grouped by topic moved to story_list_by_topic.
[gruta.git]
/
examples
/
copy.pl
blob
1adf8ed31e19455044cb6cd710e34e1ce3d01fff
1
#!/usr/bin/perl
2
3
use
Gruta
;
4
use
Gruta
::
Source
::
DBI
;
5
use
Gruta
::
Source
::
FS
;
6
7
my
$g
=
Gruta
->
new
(
8
sources
=> [
9
Gruta
::
Source
::
DBI
->
new
(
string
=>
'dbi:SQLite:g.db'
)
10
]
11
);
12
13
my
$dst
=
Gruta
::
Source
::
FS
->
new
(
path
=>
'/tmp/gruta_fs'
);
14
15
$dst
->
create
();
16
$g
->
transfer_to_source
(
$dst
);