From: Marc Fiuczynski Date: Fri, 25 Jan 2008 14:41:38 +0000 (+0000) Subject: updated USAGE output; fixed rsync invocation in restore command X-Git-Tag: myplc-4.2-2~14 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=41369b45b753b59b8bf1ad8d4f13826a78b747d1;p=myplc.git updated USAGE output; fixed rsync invocation in restore command --- 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 ;;