[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: smartd



> You should do a backup ASAP.

Personal data is on a micro SD card.  After doing something worth 
saving it's backed to the host drive by me running this bash script .

Backup() { \
 if [ "$#" -gt 1 ]; then
   echo "Too many arguments.";
 else
   echo "0 or 1 arguments are OK.";
   if [ "$#" -eq 0 ]; then
     echo "0 arguments is OK.";
     destination=~/MY0.Bak;
     echo "destination is $destination.";
   else
     echo "1 argument is OK.";
     destination=~/MY1.Bak;
     echo "destination is $destination.";
   fi;
     echo "Executing rsync.";
     rsync \
      -auv /home/peter/MY/* $destination ;
     /bin/ls -ld ~/MY/MailMessages;
     printf "du -s $destination gives ";
     du -s $destination;
  fi;
}

"ls ... MailMessages" just reminds me to clean the mailbox.

The SD is used in multiple machines at two sites.  So my data is 
fairly well protected.  

If the SD fails, an inverse script restores data from a host drive, to 
a new SD.

If a meteorite goes through a machine, I get the holes in the case 
welded up and replace destroyed internals.  If the drive is replaced, 
I reinstall and configure the system.  A nuisance but not a catastrophe.

If an asteroid or meteorite shower or volcano destroys the SD card and 
all machines where it's backed, and I survive, data probably won't be 
a high priority but I can look for an old backup DVD.

Thx,                            ... P.



-- 
mobile: +1 778 951 5147
  VoIP: +1 604 670 0140
   48.7693 N 123.3053 W


Reply to: