A Simple Backup Script on Linux Everyone whom uses Linux wants to implement a backup solution for their Linux servers. After a lot of research, I finally decided to implement a script-based backup making use of TAR, GZIP, and CROND based on Jason Pepas's backup script. Step 1: Login to your Linux server as user "root" and type this command mkdir /root/scripts Step 2: Decide on what device you want to use as a storage for all the backups. For this scenario, I use a 30GB SCSI HDD plug to my Linux server. Then, I reboot my server to find the device name and edit my /etc/fstab file to add the storage device so that it is automatically mounted every time the server is rebooted. To find out the device name, type dmesg. In my case, the SCSI HDD is /dev/sdb2 vi /etc/fstab LABEL=/dev/sdb2 /backup ext3 defaults 1 2 LABEL=/ / ext3 defaults 1 1 LABEL=/boot1 /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=...
You are reading the blog of Moonshi Mohsenruddin, a Singapore citizen and evangelist of Information Technology and how IT can be leverage to solve real world problems. I am a Problem Solver, a Systems Guy who believes in Sharing thru Giving, Learning by Doing and applying knowledge towards creating Economic Freedom.