Run a script before and after restoration ?

ps2gamer

Verified User
Joined
Jan 26, 2009
Messages
9
Hello,
When a client wants me to restore one of his backups, he ends up with this error:

Code:
Error extracting /home/server/backups/backup/home.tar.gz : /bin/tar: sub-domains/test.local-server.com: Cannot utime: Operation not permitted...

This error is normal part by the fact that I have customized quite a bit, to avoid deleting files related to the system and also to separate domain names and subdomain, I do this because for years it there is nothing new (see here).
My question is whether it would be possible to have the next version the ability to run a script before and after restoration?
As can already be creating a domain name with the files: "domain_create_pre.sh" and "domain_create_post.sh".
Thank you!
 
Actually you are in a wrong section.

maybe you would post (or make someone move this thread) to feature reuqest cause that seems a request for restore_backup_pre.sh and restore_backup_post.sh

Regards
 
I put it here to have this opportunity to hope for a future version, I looked in the file "README" located in the "custom", and there is no such possibility. :(
 
Seems feasible : http://www.directadmin.com/features.php?id=993, except that after testing it seems that nothing is running :

Code:
#!/bin/sh

echo "True !\n" > "/home/server/public_html/out.log"
echo "True !\n" > "/tmp/out.log"
echo "True !\n"

I made this piece of code to make sure that is well executed, but no trace of a log file.
Do you have a sample file so I can see if the result is the same ?

thank you
 
Seems feasible : http://www.directadmin.com/features.php?id=993, except that after testing it seems that nothing is running :

Code:
#!/bin/sh

echo "True !\n" > "/home/server/public_html/out.log"
echo "True !\n" > "/tmp/out.log"
echo "True !\n"

I made this piece of code to make sure that is well executed, but no trace of a log file.
Do you have a sample file so I can see if the result is the same ?

thank you

Those logs file will not filled? Have you tryed without the "" in the path?

Regards
 
It works, I had to put the right names indicate links, but also put these files in "diradmin: diradmin", in short to force test I confuse the parameters "chown" and "chmod" and especially to put it back in the "custom".
I will now be able to fix my problem with tar.
It would be nice to add in the "README" files missing, this will have on one page all the possibilities that can "DirectAdmin".
 
Last edited:
I put it here to have this opportunity to hope for a future version, I looked in the file "README" located in the "custom", and there is no such possibility. :(
Nevertheless it's not an official DirectAdmin announcement. Moved.

Jeff
 
Back
Top