# /media/bill/HOWELL_BASE/bin/0_USB_maintenance.txt www.BillHowell.ca 09Apr2016 moved from _Howell - email signature_Lenovo.txt *************************** *************************** Weekly Saturday – backups & viruses (2 hours to do whole thing!) # 1. SETUP : # file system - EMPTY TRASH!! # Thunderbird -> empty trash, then compact folders # MUST connect & MOUNT backup USB drive to Backup Power tower!!! (use nemo, krusader or dolphin to show files on USB) # LinuxMint Preferences : [Power magmt->Energy settings, Display->Screen Saver] -> times to forever # TURN "OFF" Internet connection #************* # 2. START : # QNial : # Monthly ONLY : check that correct HD specified : /media/bill/HOWELL_BASE/Qnial/MY_NDFS/USB_backup/USB_maintenance.ndf # type 'qnial' then 'loaddefs "maintain ' # type 'lq_USBMaintenance' # start routine by typing "USB_maintenance [...'weekly' or 'monthly'...]" # NOTE : 02Dec2014 - add "recoll" desktop search indexing to script file, to run after clamscan #************* # 3. AFTER: # Check "directory size balance" in # /media/bill/HOWELL_BASE/Qnial/MY_NDFS/USB_backup/USB_dirSizes_log.txt # Disconnect USB backup drive, store away # check "/media/bill/HOWELL_BASE/Qnial/MY_NDFS/USB_backup/USB_clamscan_log.txt" to deal with files that clamscan has flagged! (eg Thunderbird folders etc) # at some time - "clean up" infected files!!!! (BUT leave some as a check on clamav performance!) # KDE System settings : [Power mgmt->Energy settings, Display->Screen Saver] -> times to normal 15, 30 minutes etc ************************** Outstanding issues : 21Sep2016 - Tosh backup -> need to backup "live" directories! May2016? Old stuff - keep for now as remindeer : # nyet : this is done every day automatically!! ->> Run : Update Manager!! ************************************* 06May2016 Lenovo maintenance adjustments for USB_DISK having QNial central 06May2016 - need to consolidate Lenovo & Toishiba files into one system to save huge maintenance costs NYET - 4 separate drives to backup (Lenovo main+ATA as one) I changed the following files, in '/home/bill/Qnial/MY_NDFS', using the Toshiba files as "templates" to copy-over & change : Lenovo_maintenance.ndf Lenovo_HD_backup.ndf Lenovo_dirSizes.ndf Lenovo_clamscan.ndf This involved : timestamp routines change Qnial_mine to Qnial_comp # I ran Lenovo_maintenance 'weekly' +-----+ Lenovo_HD_backup.ndf >> Result : OK Lenovo_weekly_backup -> ~12.2 Gb for weekly, but it "vaporized" when I made a mistake renaming the file? I have to redo the save after clamscan is done. Also - I had forgotten to activate the drive ATA_WDC_500G. Re-run : seems OK, shows 11 Gb versus "160506 Lenovo_weekly_backup" 3.8 Gb - will check dirSizes below +-----+ Lenovo_dirSizes.ndf >> Result : Same error as with Toshiba : ?tonumber arg is not a string holding a number ?no_value Probably string function or timestamp again (should have been fixed?!) char_tab := string char 9 ; # Now it's working OK, but I have to wait for clamscan to end so I can re-run this. Re-run : Oops - still a problem. Forgot to save file with changes? Re-Re-run : OK, seems great, although "error" is a tad high : (Srcs - Back) : (eg -ve due to deleted/moved dirs| -1.963 Gb +-----+ Lenovo_clamscan.ndf >> Result : Works great! *************************************** 24Oct2014 - errors with keyFiles backups! - fixed? 01Dec2014 clamscan missing - download with freshclam!!! (clamav) then rerun ... - also - can run "Software Manager" without password - need to change setup!!! 150503 HardDisk backups - directory sizes 1502015 there are something like 60 or so new viruses every day! Perhaps I hould have cron do freshclam twice a day!?!? 151113 freshclam locked by another process (normal or sudo!) 151120 freshclam : >>/home/bill/bin/clamscan_root_log.txt ERROR: Problem with internal ligger (UpdateLogFile = /var/log/clamav/freshclam.log). 160404 no updates (how long has that been? - eg Toshiba as well Update Mgr does nothing) enddoc