Archiving a large backup across multiple discs on Linux Rumi, September 6, 2019 We have two options (as we obviously don’t want to delete our data!) Use a different backup medium Split the backup across multiple volumes Sometimes the former just isn’t appropriate, as much because of the cost of harddrives vs Optical Media (i.e. CD’s/DVD’s). This short tutorial will explain how to create a single backup archive, and then split it across multiple CD’s/DVD’s. In this tutorial, I want to backup to DVD (as my photo collection would require more than 40 CD’s). So from BASH; tar -cf Pictures_backup.tar Pictures/ split -d -b 4480m Pictures.backup.tar This will then give you multiple files to burn to disc (each beginning with x). Burn these files with your favourite CD Burner. To restore the files, copy them all to one directory and then run the following cat * > Pictures_backup.tar tar xvf Pictures_backup.tar Notes You can also create and split the archive in a single line, by piping tar through split. If you have the harddrive space and are disciplined enough to actually burn the files off regularly, you can write a fairly simple BASH script to call from your crontab; #!/bin/bash # Set where you want the Backup files to be stored BACKUP_DIR="/var/tmp/" cd /home/$USER/ tar -cf Pictures_backup.tar Pictures/ | split -d -b 4480m - Pictures_backup_$(date +%Y%m%d).tar mv Pictures_backup_$(date +%Y%m%d).tar* $BACKUP_DIR Whichever route you take around creating the split files, if you are wanting to split across CD’s you need to alter the split command. In place of 4480m simply enter 680m. Related Scripts BackupSplit
EOT তৈরির কৌশল April 16, 2010April 6, 2013 আমি অনেকদিন থেকেই এটি অনুভব করছিলাম যে, EOT তৈরির ধাপগুলি সঠিকভাবে বর্ণনা করে একটি লেখা তৈরি করবো। আমি দেখেছি অনেকেই সমস্যায় পড়েন। বুঝতে পারেন না কিভাবে এগোবেন। EOT তৈরি করতে পারলেও দেখা যায় তার পারফরমেন্স ভালো না। বুঝতে পারেন না কোথায় সমস্যা হয়েছিলো। আর এই চিন্তা থেকেই এই লেখাটি শুরু… Read More
CRON scripts to running in seconds interval June 6, 2014 This problem can be solved with simple bash script. For example, if you need to run a PHP script on every 20 seconds, you can create a bash script like this: #!/bin/bash #Name:myscript.sh #Desc:Run script in every 20 seconds while (sleep 20 && php /path_to_your_script/your_script_name.php) & do wait $!… Read More
Horizontal CSS menu August 16, 2009 1. Let’s begin! Create a new HTML document and save it as cssmenu.html. Although is better to put the CSS code in a external style sheet, in this tutorial we will put the whole CSS code in the HTML file to be easier to follow by readers. Related Read More