So I am trying to make a basic database backup script. It uses mysqldump and puts the data in a .sql file, which is then uploaded to dropbox.
My question is, how can I make sure the dump is finished before the upload starts?
mysqldump -u root -p<password> <database> > $DBFILE
dropbox_uploader.sh upload $DBFILE
Will it automatically wait for the dump to end, or do I need to make a while loop? If the latter is the case, how do you go about that?