Skip to content
Hostripples Web Hosting
  • Blog Home
  • Shared
    • SSD Shared Hosting
    • Linux Shared Hosting
    • Windows Shared Hosting
    • WordPress Hosting
    • Business Hosting
    • JSP/Tomcat Hosting
  • Reseller
    • SSD Linux Reseller
    • Linux Reseller
    • Windows Reseller
    • WHMCS SSD reseller
  • Dedicated
    • Gaming Dedicated Server
    • Canada Dedicated Server
    • USA Dedicated Server
    • Indian Dedicated Server
    • More Dedicated Server
  • VPS
    • XEN VPS Server
    • Open VZ VPS Server
    • SSD VPS
    • Plesk VPS
  • Email Hosting
    • Business Email
    • Spam Experts
  • Add-Ons
    • SSL Certificate
    • Site Lock
    • Site Lock VPN
    • Codeguard Backup
    • Website Builder
  • Hot Offers
    • Domain Offers
    • Hosting Offers
  • Domains
    • Register Domain
    • Transfer Domain
Posted on June 23, 2015 by Vishwajit Kale

Backup script for reseller account

Following are the steps to take increment backup of reseller account on backup server.

1) First we need to find out the user name which is under the reseller account.

On shared/source server :-

vi /home/resellerUsername/backup.sh

# For finding the username under the reseller account

cat /etc/trueuserowners | grep resellerUsername | awk -F: '{print $1}' > /home/resellerUsername/resellerUsername.txt

2) Save the file with the permission 755

#Then set the cron in once a day in cpanel of reseller account

0 0 * * * sh /home/resellerUsername/backup.sh

==============================================================================

3) On Backup server :-

vi /home/backupUsername/backup.sh

==============================================================================
# Rsync the client name from source server and store in /home/backupUsername/ on backup server

/usr/bin/rsync -vrplogDtH -e "ssh -p SSH-PORT " root@Source_Server_Hostname:/home/resellerUsername/resellerUsername.txt /home/backupUsername/

# For Data Backup

for i in `cat /home/backupUsername/resellerUsername.txt`;do /usr/bin/rsync -vrplogDtH -e "ssh -p SSH-PORT " root@Source_Server_Hostname:/home/$i /home/backupUsername/weekly-data; done

#For Mysql Backup

for i in `cat /home/backupUsername/resellerUsername.txt`;do /usr/bin/rsync -vrplogDtH -e "ssh -p SSH-PORT " root@Source_Server_Hostname:/var/lib/mysql/$i* /home/backupUsername/weekly-mysql/; done

# Change the ownership for accessing the files by using ftp

chown backupUsername:backupUsername /home/backupUsername/weekly-data/ -R
chown backupUsername:backupUsername /home/backupUsername/weekly-mysql/ -R
===================================================

Save the file with the permission 755

4) Then set the cron for daily backup.

vi /var/spool/cron/root
0 0 * * * /bin/bash /home/backupUsername/backup.sh

Note : Replace the “Source_Server_Hostname”, “backupUsername: and “resellerUsername” with the original name.


Backup script for reseller account, Hostripples Web Hosting

Vishwajit Kale

Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostripples, a company that aims to provide affordable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.
View all posts

Share this:

  • Tweet
  • WhatsApp
  • More
  • Pocket
  • Share on Tumblr
  • Print
  • Backup script for reseller account, Hostripples Web Hosting

Like this:

Like Loading...

Related

cPanel Scripting Shell ProgrammingBackup script backupUsername cpanel Data Backup FTP Hostname Mysql Backup reseller account shared server Shell Programming And Scripting source server

Post navigation

Perl error while running weblogs on the server
How to create email account in postfix mail server

Recent Posts

  • How to Give cPanel Access to Support for Accessing Your Server: cPanel Support
  • The Ultimate Guide for Cloudflare cPanel Plugin Installation on Server
  • What is Leech Protection in cPanel? Steps to configure leech protection
  • Steps to create, edit, and remove scheduled task in Plesk- Hostripples
  • cPanel Security Advisory | Code execution due to faulty file extension dispatching.
Unlimited-web-hosting

Domain Name Starting from $ 1.99

Archives

Secured Wordpress Hosting

Categories

Linux Reseller Hosting

You must log in to post a comment.

Company

  • About Us
  • Data Centers
  • Client Reviews
  • Contact Us
  • Our Client
  • Coupon Partners
  • Sell Your Business

Resources

  • Blog
  • Affiliate Programs
  • Affiliate Banners
  • Web Design & Development
  • Legal
  • Support Center
  • Open Ticket
  • Knowledge base

Popular Application

  • Joomla Hosting
  • WordPress Hosting
  • Magento Hosting
  • Drupal Hosting
  • Django Hosting
  • OS Commerce Hosting
  • Video Hosting
  • More Applications

Features

  • Free Site Builder
  • Free PHP scripts
  • WHM/cPanel Features
  • Free Domain Reseller
  • Plesk Features

WHO WE ARE

Hostripples is one of the top Cheapest Web Hosting Company in USA, Canada, France, UK and Europe. We Provide Linux cPanel Hosting, Windows Plesk Hosting, Reseller Hosting, OpenVz VPS, XEN VPS, Cloud VPS and Dedicated Server in Affordable Cost.

There are many Hosting company in USA, Canada, France, UK and Europe, But the question you need to ask is - "Do they provide any value added services?" or "Are they available 24 hours a day, 7 days a week & 365 days a year.". Try "Hostripples", the No.1 Web Hosting Company in USA, Canada, France, UK and Europe. Host your websites with the best in Industry & Leave burden of hosting to the most reliable & best support team in the Hosting Industry. NO Hidden Charges, NO Extra Fee and NO set up charges, This is our policy and promise to our customers. We have become a trusted name in the web hosting industry with 50000+ clients all over World. Our cutting edge technology in web hosting, Makes us pioneers in providing uninterrupted service to all our customers.

Benefits of Choosing Hostripples

  • Guaranteed 99.9% uptime.
  • Our Linux Hosting plans come with Latest PHP and MySQL Databases.
  • Our best web hosting plans support CMS like Wordpress, Joomla, Drupal, Magento and more.
  • Each of our web hosting plans contains email, FTP, and sub-domains We also provide 24/7 Technical support.
  • Custom hosting plans according to the clients requirements.
  • No Hidden Cost, NO Setup fee & No Extra Payments
  • FREE Control Panel, Database Manager, Add-on/Parked Domain.
  • 24/7 Support in multiple local languages.
  • Free installation and setup of Blog/Business/E-commerce Websites.
  • FREE RVSiteBuilder/Web Email/Email Forwarding.
  • Phone Support & Email/Ticket Support & Chat Support.
  • POP3/SMTP/IMAP/PHP/Python/MySql Support.
  • In Build DDOS Protection.
  • Tier-4 Data-center with cutting edge technology.

© 2013-2021.. All Rights Reserved.Hostripples a division of SARPS Technolog!es LLC Delaware, USA.

Sign Up Now and get flat 50% off on all shared and reseller hosting

×
%d bloggers like this: