4 ms·
Two screw ups come to mind. 1. First day at a job. I need to get familiar with a legacy system and get a SQL dump from it to create a local copy of the databas
by glazskunrukitis 13y ago
Two screw ups come to mind.
1. First day at a job. I need to get familiar with a legacy system and get a SQL dump from it to create a local copy of the database. After some SSHing and MySQLing, I confuse my two split terminal panes and end up importing my local dump to production server. Of course database names and users were the same so I end up dropping the database. No biggie. Backups were available from previous day.
2. Similar story to the first one. I got a new shiny Zend Studio IDE. Want to set up sync with remote server (just a static company website with no version control). Fill all the settings, press the sync button - and what happens? Zend Studio somehow figured that I want to force sync my local folder, which is empty, to the remote site, and it just deletes everything on the web root and uploads my empty folder. Wat. Should have read the settings twice.
- codygman 13y agoThis could be a strong example for why "the unix way" is better. You don't overwrite your server with anything unless you explicity rsync/scp it.