Tag: backup

Ubuntu: Recover Data from old Luks Encrypted HDD to new HDD

If you prefer to use encrypted Devices you ran into a problem if you try to move, migrate or recover the files from the old luks protected home. As normal User you should know that luks is used with LVM2 Logicial Volume Manager, which manages the partitions “named based”. Major Info! Ubuntu prename the volume group with the Setup-DVD all time to the same VG_NAME called “ubuntu-vg”!!! So what do you need to migrate or recover? Download the ubuntu DVD and burn it to a disc Insert the new HDD to the Sata1 Port Plugin the ubuntu DVD for Setup […]

Backup your PC with Linux Full Disk Snapshot Free Tool with Diskdump

Today a User is forced to Update daily his System or change anything to try new Software. But here mostly the Users run into very BAD PROBLEMS. I got often Calls that Users lose the control of the PC after Updates, Software Setups, Software Removal’s .. For this Linux offers a default Backup Tool, called Diskdump (“dd” command) which is on every Setup/Recover CD and Installation. Before any Changes do allways a Backup to USB Drives, Sticks or Second SATA Disk! This will save you TIME, Money, DATA and Nerves! Backup : Mount the Disk 2 on Path /mnt as […]

MySQL : Backup and Restore Database without phpmyadmin (commandline)

Problem: phpmyadmin interfaces are slow and often attacked by script kids, if you can don’t use it! Solution: To backup and restore use command line To Backup a database: $mysqldump -u root -p wordpressdb > /backups/wordpressdb-dump.sql [Enter root password] To restore: $mysql -u root -p wordpressdb < /backups/wordpressdb-dump.sql[Enter root password] Remark: this is not recogized by the ONLINE SYSTEM if users visits you pages to read! There must be no shutdown of the mysql or apache webserver, its a online HOT-Dump. If you like put it into a script and set cron to backup every night. Sample Bash MySQL Script […]

WordPress MySQL: Cleanup old revisions old posts old entrys

Problem: If you use wordpress and edit often your posts a high count of old revisions are backuped inside the mysql database: Solution: Login mysql $mysql -u root -p [Enter root password] at mysql command line select wordpress your database mysql>use wordpressdb; [Enter] System echo=Database changed.. delete old backups of posts mysql>DELETE FROM wp_posts WHERE post_type = "revision"; [Enter] System echo=..Entry affected time.. logout database and revisit pages, if you have made a database backup with mysqldump before and after cleanup you see how much size the database lost (du -h wordpress.sql) often 80% of the size.

SME Server usefull Backup Tips Custom Templates Customizing SME

On SME Server: Data Path which are saved by Console Backup – save all Custom-Scripts which you run with Cron or Root at Location /root – save all modified Custom Templates at /etc/e-smith/templates-custom – all ibays – all /home – if you not know how to make /etc/e-smith/templates-custom files copy the standard templates from /etc/e-smith/templates to /etc/e-smith/templates-custom and modify them there don’t forget to run after customize: #signal-event post-upgrade and #signal-event reboot

SME Server USB Disk Stick mount Problem at SME Server Backup Console

Problem: On SME Server the HAL Daemon often not recognize a USB Stick or Disk which you can use for “Console” Backup Program. Solution: – Create a Script with #nano /root/backup.sh – insert: service haldaemon restart service messagebus restart console exit This restart the HAL Environment before Console (SSH-Admin-Tool)is opened. To prevent Users to write on the Shares if you run the Backup you can add: service haldaemon restart service messagebus restart service smb stop console service smb start exit This will stop Samba-Windows Shares! and prevent File-Access-Lockwaits!