Tag: Script

  • www backup script

    Here is a simple script that creates a RAR file of /var/www/ 1. Create a script folder. # sudo mkdir /script 2. Create a backup folder and a destnation folder for the www rar file. # sudo mkdir /backup /backup/www 3. Create a script file. # sudo nano /script/wwwbackup.sh Add the following: #!/bin/bash /usr/bin/rar a […]

  • MySQL backup script

    1. Create a script folder. # sudo mkdir /script 2. Create a backup folder and a destnation folder for the MySQL files. # sudo mkdir /backup /backup/mysql 3. Create a script file. # sudo nano /script/mysqlbackup.sh At the start of the file add: #!/bin/bash On the next row write your script. Here are a few […]