An error occurred during the backup (File successfully removed)

alemmsm

Verified User
Joined
Nov 9, 2017
Messages
43
hello dear

I put a password on the backup when creating a backup and, I get the following message ...

Encryption of /home/admin/admin_backups/admin.root.admin.tar.zst has failed: Permission denied.
Error while encrypting /home/admin/admin_backups/admin.root.admin.tar.zst: error writing output file
File successfully removed
 
Did you meet the requirements to encrypt backups ?

Whether or not a direct admin on your server supports this feature you can test with the following command:

/usr/local/directadmin/directadmin c | grep allow_backup_encryption=
It's expected to see either:

allow_backup_encryption=0
or

allow_backup_encryption=1
If the command does not return anything, or returns results different from listed above, then you have too old Directadmin version. IF your directadmin version is too old and does not include this feature you should update Directadmin or install a pre-release binary. Allow backup encryption To allow backup encryption please run the following command:

grep -m1 -q ^allow_backup_encryption= /usr/local/directadmin/conf/directadmin.conf && perl -pi -e "s#allow_backup_encryption=.*#allow_backup_encryption=1#" /usr/local/directadmin/conf/directadmin.conf || echo allow_backup_encryption=1 >> /usr/local/directadmin/conf/directadmin.conf
Control it once more with the same command:

/usr/local/directadmin/directadmin c | grep allow_backup_encryption=
this time we should see:

allow_backup_encryption=1
Restart directadmin:

service directadmin restart

If Directadmin crashes and/or an issue with permissions happens try and set 755 permissions to the scripts:

chmod 755 /usr/local/directadmin/scripts/*crypt_file.sh
to get:

-rwxr-xr-x 1 diradmin diradmin 536 Apr 21 13:45 /usr/local/directadmin/scripts/decrypt_file.sh
-rwxr-xr-x 1 diradmin diradmin 536 Apr 21 11:53 /usr/local/directadmin/scripts/encrypt_file.sh

All credits to @zEitEr more info here
 
Last edited:
Back
Top