Hi there, how to I execute multiple command before the dump begins? I have tried something but it didn't work out:
Executing DumpPreUserCmd: /usr/bin/ssh -l root bla 'mysqldump -u root -pxyz --all-databases --add-locks > /var/backuppc-prepare/backup-all-databases.sql; dpkg --get-selections > /var/backuppc-prepare/dpkg-get-selections.txt; smbtar -s 192.168.119.11 -x C$ -u backup -p xxx -t /var/backuppc-prepare/ntbackup.tar wwwroot/' bash: line 1: mysqldump -u root -pxyz --all-databases --add-locks > /var/backuppc-prepare/backup-all-databases.sql; dpkg --get-selections > /var/backuppc-prepare/dpkg-get-selections.txt; smbtar -s 192.168.119.11 -x C$ -u backup -p xxx -t /var/backuppc-prepare/ntbackup.tar wwwroot/: No such file or directory I have tried running the first line as backuppc user manually and it did work. Maybe there is a more elegant way of executing multiple commands? Regards, ~jm ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ BackupPC-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
