Permissions for system backup

flexjoly

Verified User
Joined
Nov 2, 2016
Messages
89
Location
Apeldoorn, Netherlands
Hi,

When performing a systembackup, the backup-dir has strict root permissions.

We set the backup-path to the admin-user like: \home\admin\sys_backup
But because it is set strictly to root (640), the files wont show in the file-manager.

Is it possible that sysbk gives them other permissions?

Greetz,
flexjoly
 
Hello,

You can update the script to fit your needs:

Code:
# grep chmod /usr/local/sysbk/internals/internals.sysbk
    chmod 640 $ARG
   chmod 640 $BACKUP_PATH
   chmod 640 $BACKUP_PATH/$DATE
   chmod 640 $BACKUP_PATH/$DATE
        chmod 750 $BACKUP_PATH/$DATE/$DIR_PREFIX
   chmod 640 $BACKUP_PATH/$DATE/$DIR_PREFIX/$NAME*
   chmod 640 $BACKUP_PATH/$DATE/$NAME*

The file /usr/local/sysbk/internals/internals.sysbk hardly will ever be overwritten by Directadmin, if you need more assurance you might set it immutable after you finish with its modification.
 
  • Like
Reactions: Kal
Back
Top