How to Set Up and Manage Remote (Off-site) Backups in CloudPanel?
2025-03-22 06:03:55
#1
I’d like to use Remote Backups (off-site backups) for my CloudPanel-managed websites. How do I set this up with services like Amazon S3, Dropbox, or Google Drive? Also, how can I restore these backups later if needed?
2025-03-22 06:05:01
#2
CloudPanel supports Remote Backups (off-site backups) using popular storage providers such as Amazon S3, Wasabi, DigitalOcean Spaces, Dropbox, Google Drive, Hetzner Storage Box, SFTP, and other providers compatible with Rclone.




📌 Setup Remote Backups



1. Set Instance Timezone
Ensure your instance timezone is correct so the backup runs at your intended time.

2. Select and Configure Storage Provider
  • Navigate to Remote Backups, select your preferred storage provider (e.g., Amazon S3), and click Continue.
  • Example (Amazon S3 Setup):
    [LIST]
  • Log in to your AWS Management Console.
  • Create an S3 Bucket and generate AWS Access Keys (Access Key & Secret Key) with restricted S3 permissions.
  • Enter the details in CloudPanel's Remote Backup configuration form and click Save.

[/LIST]
3. Test Your Backup
  • Click on the button "Create Backup" (top right) to create your first backup.
  • Verify your backup file is successfully uploaded to your storage provider.





📌 Excluding Files or Directories from Backups


  • By default, backups include all sites and their entire home directories, excluding .ssh, logs, and tmp folders.
  • To exclude specific directories or files, add their paths to the Excludes field.
  • To exclude an entire site from backups, add:

    CODE_BLOCK_0





📌 Restoring Files from Remote Backups



To restore files, first download your site's backup file (backup.tar) from your remote storage provider, then follow one of these methods:

🔹 Method 1: File Manager(Recommended for backups <2 GB)


  • Log in to your site's File Manager.
  • Upload backup.tar into the tmp directory.
  • Right-click on backup.tar → select Extract.
  • Copy and replace the necessary files from the extracted backup.

🔹 Method 2: SFTP/SSH(Recommended for backups > 2 GB)


  • Upload backup.tar via SFTP into your site's ~/tmp directory.
  • Log in via SSH with your site user and extract the backup:

    CODE_BLOCK_1
  • Copy and replace the necessary files from the extracted backup.




With this setup, your websites remain safely backed up off-site, and restoration becomes straightforward if ever needed.
Yazdığımız şeyler bizi temsil eder, Efendilik iyidir.
Please Login or Register.
Currently 1 people reading this topic. (1 guest(s))