Have a backup plan
Prepare yourself in advance in case the worst happens and you're robbed while on your trip.
While the theft will be jarring, at least the inconvenience and stress will be minimized if you've planned ahead. Take these steps before you leave and make a backup plan:
1) Hidden cash
Keep a small backup cash stash and a credit or debit card hidden away deep inside your backpack.
2) Scan documents
Make copies of your passport, credit and debit cards, and any other important documents like visas. Keep a copy of your scans in your backpack but also upload them online by attaching them in an email to yourself. If you lose anything, go to the embassy with your scanned documents.
3) Split your medication
If you're taking medication, split it between your backpack and day bag. That way, if you lose one, you'll still have some supply left.