From 41369b45b753b59b8bf1ad8d4f13826a78b747d1 Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Fri, 25 Jan 2008 14:41:38 +0000 Subject: [PATCH] updated USAGE output; fixed rsync invocation in restore command --- guest.init | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guest.init b/guest.init index db77508..6ee0579 100755 --- a/guest.init +++ b/guest.init @@ -94,6 +94,8 @@ usage() echo " stop Stop all PLC subsystems" echo " reload Regenerate configuration files" echo " restart Restart all PLC subsystems" + echo " checkpoint filename : Checkpoint the current state of MyPLC to filename" + echo " restart filename : Restpore MyPLC state from filename" echo " steps Displays ordered list of subsystems" echo echo "Steps:" @@ -211,7 +213,7 @@ case "$command" in tar xjf $cpfile /etc/plc.d/db restore ./etc/planetlab/plc_db.checkpoint ./etc/planetlab/plc_drupal.checkpoint rm -f ./etc/planetlab/plc_db.checkpoint ./etc/planetlab/plc_drupal.checkpoint - rsync -av ./etc/planetlab/ /etc/planetlab + rsync -av ./etc/planetlab/ /etc/planetlab/ cd - rm -rf $cpdir ;; -- 2.47.0