Quote:
Originally Posted by otheus
1. change sql_bDir to $PWD/sql_pickup/ so we can see where at actually outputs.
2. for testing, turn off compression and skip the dd command... output directly to the file.
|
okay, done. didn't seem to make a difference

(the file still comes out 0 B, just uncompressed)
test.php output:
Code:
# BEGINNING DATABASE BACKUP PORTION:
Checking if sql backup landing directory exists: ./sql_pickup/
Directory to receive database backup exists
The Shopping Cart's database backup will be: ./sql_pickup/SQLBackUp_Tuesday
Note: If the main backup is backing up the root directory, you do not need to separately download the database backup.
source of dbackup.sh
Code:
#!/bin/sh
sql_bName=SQLBackUp_$(date +%A)
mysqldump -u jzacsh_jzacsh -p wordpres --single-transaction jzacsh_jzwp > $PWD/sql_pickup/$sql_bName
actually... just in posting that ^ I realized I haven't checked:
echo $SHELL
...it returned
/usr/local/cpanel/bin/noshell
i'm guessing that means I can't run things properly? (I'm not sure, I obviously had a shell to output a file with and everything... I just wasn't successful in outputting a GOOD file)