Backup Management
Overviewβ
NodeCP provides a comprehensive backup system, allowing users to:
- β Set up automatic backups with cloud storage integration.
- β Create instant backups stored locally.
- β Schedule backups at specific times in UTC format.
Backups ensure data safety in case of system failures, accidental deletions, or migrations.
1οΈβ£ Backup Options & Storage Providersβ
Users can choose between:
- π
Automatic Backups β Scheduled backups stored in:
- βοΈ S3 Compatible Storage (AWS, DigitalOcean Spaces, etc.)
- π₯ Backblaze B2 Cloud Storage
- π FTP/SFTP Remote Servers
- β‘ Instant Backups β Creates a local backup in:
- π
/home/localbackup/
- π
2οΈβ£ Setting Up an Automatic Backupβ
Step 1: Add a New Backupβ
To set up an automatic backup:
- Click "Add New Backup".
- Select Backup Destination:
- π Backblaze
- βοΈ S3 Compatible Storage
- π FTP/SFTP
- Provide the required fields based on the selected backup type.
- Set a Backup Schedule:
- Every day at a set time.
- Custom time (UTC).
- Click "Save Backup".
β³ Scheduled backups will run automatically based on the configured time.
3οΈβ£ Backup Storage Configuration Detailsβ
βοΈ S3 Compatible Storage (AWS, DigitalOcean, etc.)β
For S3-Compatible Storage, you need:
- Access Key ID β Used for authentication.
- Secret Access Key β Secure authentication key.
- Bucket Name β The S3 bucket where backups are stored.
- Region β AWS, DigitalOcean Spaces, or any S3 providerβs region.
- Endpoint URL (optional) β Custom endpoint for non-AWS providers.
Example: AWS S3 Backup Configuration
Access Key ID: AKIAEXAMPLE123
Secret Access Key: ********************
Bucket Name: my-backups
Region: us-east-1
Endpoint URL: https://s3.amazonaws.com
Ensure your bucket permissions allow write access from your server.
π₯ Backblaze B2 Cloud Storageβ
For Backblaze B2, provide:
- Application Key β Secure key for authentication.
- Key ID β Associated with your Backblaze account.
- Bucket Name β Name of the Backblaze B2 bucket.
- Backup Schedule β Choose when backups should run.
Example: Backblaze B2 Configuration
Application Key: K000EXAMPLE456
Key ID: 000EXAMPLE789
Bucket Name: nodecp-backups
Ensure the bucket is public or has private API access enabled.
π FTP/SFTP Backupβ
For FTP/SFTP backups, provide:
- Host β IP address or domain of the FTP/SFTP server.
- Port β Connection port (Default:
21
for FTP,22
for SFTP). - Username β FTP/SFTP account username.
- Password β Associated password.
- Remote Directory β Folder where backups will be stored.
- Backup Schedule β Specify the time for automated backups.
Example: FTP/SFTP Configuration
Host: backup.myserver.com
Port: 22
Username: nodecp_backup
Password: ********
Remote Directory: /backups
Ensure the FTP/SFTP server allows incoming backup connections and has write permissions.
4οΈβ£ Creating an Instant Backupβ
To manually back up your data:
- Click "Create Local Backup".
- The system will:
- π Save the backup in
/home/localbackup/
- β Show the backup status once complete.
- π Save the backup in
Instant backups are not scheduled and must be triggered manually.
5οΈβ£ Restoring a Backupβ
To restore data from a backup:
- Locate the backup file in your storage provider or
/home/localbackup/
. - Download the backup file.
- Extract and restore your database and files manually.
Restoration must be done manually to prevent overwriting important data.
π Best Practices for Backup Managementβ
Task | Recommendation |
---|---|
Backup Frequency | Schedule daily or weekly backups for critical data |
Storage Choice | Use cloud storage (S3, Backblaze) for remote safety |
Encryption | Encrypt sensitive backups before storing remotely |
Testing Backups | Regularly verify backup integrity by restoring files |
π Security & Data Protectionβ
- Use strong credentials for FTP/SFTP backups.
- Store cloud access keys securely.
- Monitor storage usage to prevent backup failures.
- Encrypt backups before uploading them to remote storage.
π― NodeCP simplifies backup automation, ensuring data security and reliability! π