I like to use System Backup feature in directadmin. After successfully created System Backup, I want to run a custom script.sh.
In the script I need to chown and chmod the backup folder after the system backup has successfully created in order to be able to view in file manager because the backup only can be viewed by root user:
so the script that need to be run after System Backup has run successfully:
#!/bin/sh
#############
USER=myfirelove99
BACKUP_PATH=/home/$USER/system_backups
#############
chown -R $USER:$USER $BACKUP_PATH
chmod -R 755 $BACKUP_PATH
===
Edit: I just notice similar question was asked before 2 years ago (Post #2) but no answer was given here:
Is there a way to do this ?
In the script I need to chown and chmod the backup folder after the system backup has successfully created in order to be able to view in file manager because the backup only can be viewed by root user:
so the script that need to be run after System Backup has run successfully:
#!/bin/sh
#############
USER=myfirelove99
BACKUP_PATH=/home/$USER/system_backups
#############
chown -R $USER:$USER $BACKUP_PATH
chmod -R 755 $BACKUP_PATH
===
Edit: I just notice similar question was asked before 2 years ago (Post #2) but no answer was given here:
change mainpath or $mount_point for systembackup
FR: permissions sysbk, was: (solved) change $mount_point (sysbk) Hi, I tried to change the path for the system-backup to: /home/admin/sys_backups in system backup > Configure Full System Backup > Backup Path But that did not work. It still backups to /home/backup. To reach that dir I need...
forum.directadmin.com
Is there a way to do this ?
Last edited: