On 11/20/2014 07:03 AM, Fanny Alexandra Oyarzún Bórquez wrote: > I databases postgres and mysql to back and I wonder if is it possible to add > two script DumpPreUSerCmd?, eg > DumpPreUSerCmd $sshPath -q -x -l root $host > /usr/local/sbin/automysqlbackup.sh;$sshPath -q -x -l root $host > /usr/local/sbin/autopgsqlbackup.sh
What we do is call a single script named 'prebackup', which then runs all the scripts it finds in /usr/local/prebackup.d/ using GNU 'run-parts'. #!/bin/bash LOCKFILE="/var/lock/local-prebackup.lock" dotlockfile -l -p "$LOCKFILE" run-parts --exit-on-error /usr/local/prebackup.d dotlockfile -u "$LOCKFILE" -- Carl D Cravens ([email protected]) Talk is cheap because supply inevitably exceeds demand. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
