aboutsummaryrefslogtreecommitdiff
path: root/beam
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-03-10 08:34:08 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2017-03-10 09:13:14 +0200
commitc2c72e539e88157f4676bbb185c56e46a1b6d6b4 (patch)
treebb9b260536b3568da659b97a4e42ced5a3bff101 /beam
parent05aa806b33f91172e0eba0cee4a28ccfec204d3a (diff)
downloadbeam-c2c72e539e88157f4676bbb185c56e46a1b6d6b4.tar.gz
beam-c2c72e539e88157f4676bbb185c56e46a1b6d6b4.tar.bz2
Initial implementation of the restore subcommand
* lib/App/Beam/History.pm: New file. * lib/App/Beam/History/Entry.pm: New file. * lib/App/Beam/History/Record.pm: New file. * lib/App/Beam.pm (lock,unlock) (compute_triplet,status_result) (set_result): Remove. Use App::Beam::History instead. (begin): Create a History object. (end): Save the History object. (check_items): New method. * lib/App/Beam/Backend.pm (status): Remove. (record, restore): New method. * lib/App/Beam/Restore.pm: New file. * beam: Implement restore subcommand. * lib/App/Beam/Backend/Tar.pm: Likewise. * MANIFEST: Update. * lib/App/Beam/Backup.pm: Update. * lib/App/Beam/List.pm: Update.
Diffstat (limited to 'beam')
-rwxr-xr-xbeam4
1 files changed, 4 insertions, 0 deletions
diff --git a/beam b/beam
index 3b55bc4..3154e71 100755
--- a/beam
+++ b/beam
@@ -76,6 +76,10 @@ my %ctab = (
use App::Beam::Backup;
return new App::Beam::Backup(@_);
},
+ restore => sub {
+ use App::Beam::Restore;
+ return new App::Beam::Restore(@_);
+ },
list => sub {
use App::Beam::List;
return new App::Beam::List(@_);

Return to:

Send suggestions and report system problems to the System administrator.