Hi Scott,

... once upon a time ... I used this feature (pre-client) to make a
mysqldump before syncing. If I remember well, there was no problem with it.
I'm almost sure, Your path isn't correct.

I'm "dirvishing", so goin' to find a solution for Your problem.

--
Olivér


2017-10-27 19:32 GMT+02:00 Scott Walker <[email protected]>:

> In my default.conf I have:
>
> pre-client: /root/scripts/job_kam1_raid1.sh
>
> The script is as follows:
>
> [[email protected] kam1_raid1]$ cat /root/scripts/job_kam1_raid1.sh
> #!/bin/bash
>
> # Check if running
> # Replace the from= line with the path needed from /srv/dirvish.
>
> if pgrep -f "from=/srv/dirvish/servers/kam1/kam1_raid1" > /dev/null
> then
>    echo "rsync is already running"
>    exit 1
> else
>    exit 0
> fi
> [[email protected] kam1_raid1]$
>
>
> But everytime I run the dirvish --vault kam1_raid1 I get
>
> [[email protected] kam1_raid1]$ dirvish --vault kam1_raid1
> bash: /root/scripts/job_kam1_raid1.sh: No such file or directory
> kam1_raid1:default pre-client failed (32512)
>
>
> I'm really at a loss now :(
>
> --
>
> [image: Framestore]
>
> Scott Walker · Senior Systems Administrator
>
> London · New York · Los Angeles · Montréal
> T  +1 514 277 0004 ext. 40905
> 5455 Av. de Gaspé, Suite 900, Montréal QC H2T 3B3
> <https://www.google.co.uk/maps/place/5455+Av.+de+Gasp%C3%A9,+Suite+900,+Montr%C3%A9al+QC+H2T+3B3>
> Twitter <https://twitter.com/framestore> · Facebook
> <https://www.facebook.com/framestore> · framestore.com
> <http://www.framestore.com>
>
> _______________________________________________
> Dirvish mailing list
> [email protected]
> http://www.dirvish.org/mailman/listinfo/dirvish
>
>
_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to