Duplicati
Duplicati is an open-source backup service. It allows you to remotely manage backups from multiple devices via a browser GUI. It supports S3, FTP, SFTP, OpenStack Swift, and WebDAV protocols.
Configure backup in Duplicati
- Create a bucket for backups.
- Configure S3 access.
- Optional: to further protect backups, enable versioning and Object Lock.
- Install Duplicati.
- Create a backup plan.
- Check backup plan execution.
1. Create a bucket for backups
Use the Create bucket instructions.
2. Configure S3 access
Access can be configured by the Account Owner or a user with the iam.admin role.
- Create a service user with a role with access to S3. If you use a service user with the
s3.user,object_storage_userors3.bucket.userrole, the bucket must have a configured access policy and its rules must allow access to this user. - Issue an S3 key to the user.
3. Optional: enable versioning and Object Lock
-
If you want to store and, if necessary, restore previous versions of backup objects, enable versioning.
-
If you want to block backups in a bucket from accidental deletion or overwriting, in addition to versioning:
2.1. Enable Object Lock.
4. Install Duplicati
Use the Installation guide in the Duplicati documentation.
5. Create a backup plan
For more information about configuring a backup plan, see the Set up a backup in the UI guide in the Duplicati documentation.
-
Open Duplicati.
-
In the side menu, go to Add backup
-
Click Add a new backup.
-
In the General step:
4.1. In the Backup name field, enter a name for the backup plan.
4.2. In the Encryption field, select an encryption method.
4.3. In the Password field, enter a password or click Generate password to generate one.
4.4. Re-enter the password.
4.5. Click Continue.
-
In the Destination step:
5.1. In the Storage Type field, select Selectel (S3).
5.2. In the Bucket name field, enter the name of the bucket you created in step 1.
5.3. In the Folder path field, enter the path where backups will be stored in the bucket, for example:
daily/— for daily incremental backups;weekly/— for weekly backups;daily/full/— for daily full backups.
If you do not specify a path, backups will be stored in the root folder of the bucket.
5.4. In the Server field, select the pool where the bucket is located. If the desired pool is not listed, enter the S3 domain manually.
5.5. In the Access Key field, paste the value of the Access key field from the S3 key of the user for whom you configured access in step 2.
5.6. In the Secret Key field, paste the value of the Secret key field from the S3 key of the user for whom you configured access in step 2.
5.7. Click Continue.
-
In the Source Data step:
6.1. Select the folders on your local device that you want to back up.
6.2. Click Continue.
-
In the Schedule step:
7.1. To run the backup plan automatically on a schedule, turn on the Automatically run backups toggle switch.
7.2. Configure the backup plan schedule.
7.3. Click Continue.
-
In the Options step:
8.1. In the Backup retention field, set the backup retention period or leave Keep all backups so that backups are not deleted.
8.2. Click Submit.
6. Check the backup plan execution
- Open Duplicati.
- Go to the Home section.
- In the row of the backup plan that you created in step 5, click Run now.
- Wait for the plan to complete and make sure the backups are created.