Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postexec problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
brasuca
n00b
n00b


Joined: 25 May 2004
Posts: 22

PostPosted: Fri Jun 04, 2004 10:57 am    Post subject: postexec problem Reply with quote

hi,

i have add this to my homes share im smb.conf:

preexec = ln -s /home/samba/historialbackups/backup_%u/home/samba/homedir/%u
postexec = tar cfz /home/samba/historialbackups/backup_%u/backup_`date+%d%m-%H%M`.tar /home/homedir/%u

It should do a compressed backup file of the homedir assigned to the user connected, and a link the backup in the user home. The preexec does the link correctly, but the postexec does not make file. It's not about the command, I've tried it in command prompt with a specific user and it worked, but not in postexec.

any idea?
Back to top
View user's profile Send private message
brasuca
n00b
n00b


Joined: 25 May 2004
Posts: 22

PostPosted: Fri Jun 04, 2004 3:37 pm    Post subject: Reply with quote

I caught this error in the samba logs, when disconnected from the share:

Code:

tar (child): /home/samba/historialbackups/backup_ygor/backup_15997pdc2/home/ygor192.168.10.50.tar$
tar (child): Error is not recoverable: exiting now
Back to top
View user's profile Send private message
brasuca
n00b
n00b


Joined: 25 May 2004
Posts: 22

PostPosted: Mon Jun 07, 2004 11:09 am    Post subject: Reply with quote

the problem got worse... all it happens now is.... absolutely nothing. I dont' get any log when disconnecting the share, any error, nothing. I can't imagine what is the problem, but it seems that postexec isn't executing.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum