Split Files on embedded Linux Systems

If you run a embedded Linux PC like raspi often some Linux Commands fail without error messages, cause the hardware performance is low tech.

Same i have seen on the split command..

to split a 50GB Photos-Archive File to 4Gb on a USB Drive i found out that:

sudo split -b 4096m -d -u Photos.tgz Photos-Archive_

fix the job..
Cause option -u disable IO-Caching over the 2.0 USB Port to the RAM of the raspi that the Data of the Output Stream is written direct to the Drive.

FastGlacier Client on Linux AWS Cloud Backup

If you are a Newbie on AWS Glacier Cloud Backup you want to use a simple Backup Uploader you can use FastGlacier inside Wine!

Major Info: Glacier puts only Files up to 4GB size, split 50GB Tar/Zip Files to 4GB!!

  1. Setup AWS free Account !!
  2. Go to IAM create User, set User Role to Glacier full access
  3. Write down User and Password key at IAM
  4. now go right to you loved Cloud Area like Frankfurt or Asia
  5. Setup new vault, logout..
  6. install wine
  7. install winetricks dotnet40 Framework
  8. install FastGlacier
  9. have fun..

sudo apt-get install wine 
sudo apt-get winetricks

Run winetricks installer now via X-Desktop it needs X-Output!! for the Dialog to you!
inside terminal from GUI
winetricks dotnet40

Download free FastGlacier search on Google..
Double klick at the FastGlacier.exe
Setup your Client with AWS User+KEY
…enjoy..

Remark: Glacier need often 3-4 hours between updates !! (retrieve Inventory and Delete Folders) If Popups shows Erros try it hours later again!! Glacer is slow but cheap backup solution against lost Hardware thru fire!

Don’t upload confidential data without ENCRYPTION !!

Backup daily WordPress Drupal Script

If you use Drupal or WordPress and you have a virtual Server with SSH Login you should set up a daily Backup Script to have a Snapshot of your Blogs if Hackers insert SQL Code Injections or hack PHP Sites. Cause you cant NEVER know every EXPLOIT of every used Plugin (here less plugins is more!)

Of course you can daily or hourly RESTORE AUTOMATIC by CRON your Blogs by OVERWRITE bad inserted STUFF!

Howto?

  • Article comming soon !!  .. sorry have current not enough time..

 

or read my Wiki for MYSQL and WordPress Help!

  • Daily or hourly restored Stuff makes it useless to hack your blog!
  • Mount /tmp and /var/tmp ALWAYS with option NOEXEC!!
  • disable user access to : find,wget,curl,fetch or other commands with chmod 000 (noexec)
  • at php.ini disable upload if not needed cause you use SCP to upload Files/Images
  • on Apache2 install mod_security2 to blog SQL Injections, Remark: Not all code is known by the plugin!

MediaWiki: Purge All Users hold Page Content

If you use MediaWiki to hold your Infos, you perhaps want to Mirror the wiki to other Locations or drop all Users but hold the Content?

You can do it with onboard tools:

On the Source:

  • Login into the Console of the Webserver
  • go to /webspace/wiki/maintenance
  • run here:

php  dumpBackup.php --full > backup.xml

  • tar or rsync the image folder to destination Webspace
  • copy backup.xml to the destination Webspace
  • if you not have done, install MediaWiki new on the destination
  • go to the /webspace/wikinew/maintenance
  • paste backup.xml here
  • restore the backup:

php importDump.php backup.xml

  • run rebuild Database:

php rebuildrecentchanges.php

  • cleanup Caches:

php update.php

  • go to the Wiki and Login!
  • Check out the Content and you have NO Spam Users inside!!
  • This Steps can be used with Scripts to mirror Wiki Content WITHOUT User mirroring!! (filter out Spam Users!)

 

PDF/A: Setup Linux CUPS to Print Archive PDF/A

If you have a Office and you have to archive Documents and Prints over Years you should have heard that there is a special PDF Type called PDF/A which is set as default Archiving PDF File Type for decades.

Air Cooled Archive Raid Harddrives Low Noise Passive Cooled
Air Cooled Archive Raid Harddrives with Acoustic Decoupling (Zero Dollar) Solution

To use it you can use the Linux Print Server called CUPS to translate all digital Prints to PDF/A. This free Software Printer is known on all Linux Releases, and he can listen on USB and Network Interfaces on Documents. Also you can use Network Printers/Scanners like the Brother MFC-Series to Scan Documents and later to print them virtual as PDF/A (PDP Archive File)

The way the file is going on a Office:

Office PC -> Openoffice Writer-> Print to Cups->Linux OS -> Network -> Linux Office Server -> Linux OS -> CUPS -> CUPS Converter to PDF/A (Postscript Driver)-> Output Directory (perhaps Windows, FTP, Cloud Share)

Manual Cups Ubuntu

PDF/A Basics

Manual Windows Share Setup

Manual Cloud Share Setup

Manual FTPs Server Setup

Remark:

  • On the Data Share you can put single „Text“ (.txt) files for words like „holiday.txt, 2017.txt“ into different folders to describe the Documents and Media.
  • This offers a Timeless Search Solution, on Linux/Unix Console with the DEFAULT TOOLS like find, grep, cat or locate. Cause Text will be readable the next Decades!
  • Think easier is more helpful..
  • If you need no File Access Restrictions try to prevent the usage of modern CMS or databased Solutions!
  • Use Technics which are independent from the Operating Systems

..happy Archiving..