user_restore_post.sh not running for user level backup?

rjanssen

Verified User
Joined
Apr 15, 2016
Messages
7
Hi,

I'm trying to find out which post sh file is running after a user level restore. It doesn't look like /usr/local/directadmin/scripts/custom/user_restore_post.sh is running when the restore completes.



Regards,

Rick
 
Hello Rick,

It works on my end. I tested it with:

Code:
touch /usr/local/directadmin/scripts/custom/user_restore_post.sh
chmod 700 /usr/local/directadmin/scripts/custom/user_restore_post.sh
vi /usr/local/directadmin/scripts/custom/user_restore_post.sh

and added content:

Code:
#!/bin/bash


echo -n 1 >> $0.counter;

Ran restore process and checked:

Code:
# cat /usr/local/directadmin/scripts/custom/user_restore_post.sh.counter; echo
1

That's it.
 
Back
Top