Bobcares

How to Backup DirectAdmin Data to Google Drive

by | Feb 18, 2025

Learn how to backup DirectAdmin data to Google Drive. Our DirectAdmin Support team is here to help you with your questions and concerns.

How to Backup DirectAdmin Data to Google Drive

How to Backup DirectAdmin Data to Google DriveBacking up data from DirectAdmin to Google Drive is key to ensuring data security, integrity, and accessibility.

As every seasoned IT expert knows, a well-planned backup strategy can save you from unexpected disruptions.

Today, our Experts will discuss the importance of backing up DirectAdmin to Google Drive and examine the approach using Rclone.

Why Backup DirectAdmin to Google Drive?

  • Google Drive provides a secure backup location for data restoration in case of server failures, accidental deletions, or cyberattacks.
  • Frequent backups allow you to recover lost data due to accidental deletions or misconfigurations.
  • Backups stored in Google Drive remain safe even if the primary system is compromised by ransomware or malware.
  • Google Drive backups enable fast restoration, reducing downtime and maintaining user trust.
  • Remote teams can access backups from anywhere with an internet connection.
  • Using Google Drive is often cheaper than maintaining additional physical storage.
  • Cloud backups help ensure compliance with data protection laws and regulations.
  • Regular backups allow you to restore previous versions of data as needed.

Points to Consider Before Backing Up DirectAdmin

  • Schedule backups (daily, weekly) to minimize data loss.
  • Include user accounts, databases, emails, and configuration files.
  • Store initial backups locally before transferring to Google Drive.
  • Use cron jobs to automate backup processes.
  • Ensure a stable internet connection to prevent transfer failures.
  • Encrypt sensitive data before uploading.
  • Implement logging to track backup success or failure.
  • Regularly verify the restoration process.
  • Ensure regulatory compliance for cloud backups.
  • Monitor Google Drive space to avoid upload failures.

How to Backup DirectAdmin to Google Drive Using Rclone

Rclone is a command-line tool that facilitates file transfers between a server and cloud storage. Follow these steps to set up and automate DirectAdmin backups to Google Drive.

  1. First, connect to the server using SSH:

    ssh username@your_server_ip

    Replace `username` with the server’s username and `your_server_ip` with the actual server IP.

  2. Then, download and Install Rclone:

    curl https://rclone.org/install.sh | sudo bash

  3. Now, verify the installation:

    rclone version

  4. Next, run Rclone configuration:

    rclone config

  5. Then, it is time to create a new remote. Type `n` to create a new remote connection.
  6. Name the remote (e.g., `gdrive`).
  7. Next, choose Google Drive from the storage options.
  8. Use default client ID and secret (or enter custom credentials).
  9. Select full-access (`1`) when prompted.
  10. Then, copy and paste the generated authorization URL into a browser.
  11. Grant Rclone access to Google Drive and paste the received authorization code back into the terminal.
  12. Finally, complete the configuration and save settings.
  13. Now, we have to create a backup in DirectAdmin. So, log in to DirectAdmin and go to Admin Tools > Admin Backup/Transfer.
  14. Then, set the backup option:
    • Choose users to back up.
    • Define the backup schedule.
    • Select a local backup storage path.
    • Specify backup content.
  15. Now, automate uploads to Google Drive by editing Crontab:

    crontab -e

  16. Then, add a Cron Job for uploading backups:

    0 6 * * * /usr/sbin/rclone move /path/to/local/backup gdrive:/path/to/google/drive/folder –delete-empty-src-dirs

    This job moves backups to Google Drive daily at 6 AM and removes empty directories.

Additional Tips from Our Experts

  • Ensure enough disk space and correct permissions.
  • Regularly verify that backups are created and uploaded.
  • Consider scripts to restore backups from Google Drive when needed.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

With the above tips, we will have a reliable backup strategy for DirectAdmin using Google Drive, safeguarding our data against potential threats and failures.

In brief, our Support Experts demonstrated how to backup DirectAdmin data to Google Drive.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF