Code:
#!/bin/bash #################################################################### # vBulletin 3.6.8 Patch Level 2
If you use whereis and it says it's in /bin/bash
then the line #!/bin/bash is correct.
after chmod 755 vb_backup.sh
and you do ./vb_backup_sh
it should not say bad interp.
try loading bash manually by typing
/bin/bash
and you should get a prompt back and not an error
type exit to quit it.
and you get back in your first shell bash
I see you set:
Code:
# Please change this variable to the path to your config.php path_to_config="/my/path/to/config/mysite.com/httpdocs/includes/config.php"
cd
cd httpdocs/includes
and type:
pwd
the result from pwd (example: /home/userx/httpdocs/includes/
is what you set between the " quotes "
of course you edit out /path/to/mysite
Leave a comment: