Restore multiply Cpanel/WHM backups shell script

Filed in cpanel 0 comments

#!/bin/bash

BACKUPS=$(ls -al /home/*.gz |awk '{print $9}')

for i in $BACKUPS
do
echo "Restoring $i now...."
/scripts/restorepkg $i
done

Related posts:

  1. backup and restore Cpanel accounts with command line usnig ssh
  2. Echo and print are used to output in PHP
  3. creating backup of accounts in cpanel
  4. The Importance Of Creating Backup
  5. How to secure tmp the easy way if you have WHM/Cpanel
  6. How to have both fantastico running and shell_exec disabled on cpanel?
Posted by voshka   @   24 July 2010 0 comments

Share This Post

RSS Digg Twitter StumbleUpon Delicious Technorati

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Previous Post
«
Next Post
»
CrossBlock designed by DeltaManual.Com  |  In conjunction with Web Hosting   |   Web Hosting   |   Reverse phone