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
URL Redirect PHP script for Horde October 12, 2008November 6, 2008 I nearly got mad implementing horde in virtualmin. Though this section will not tell how the Horde was setup. Anyways, HORDE needs to work under /horde framework. I know this can be fixed up in registry.php file and can be used as /groupware or something. Related Read More
PHP-RRDTool installation on CentOS 5 January 13, 2013January 13, 2013 Step-1 Adding Yum Repository Add the Reporforge repository. Then- Yum install php-rrdtool Alternatively, you can download the rpm from http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/php-rrdtool-1.4.4-1.el5.rf.i386.rpm Related Read More
Send HTTP requests using cURL June 6, 2014 Reading a URL via GET: curl http://example.com/ Defining any HTTP method (like POST or PUT): curl http://example.com/users/1 -XPUT Sending data with a request: curl http://example.com/users -d"first_name=Bruce&last_name=Wayne" If you use -d and do not set an HTTP request method it automatically defaults to POST. Performing basic authentication: curl http://user:password@example.com/users/1 All together… Read More