Junior — Middle
What tools or commands did you use to create data backups?
sobes.tech AI
Answer from AI
To create data backups, I used different tools and commands depending on the environment:
-
For databases:
mysqldumpfor MySQL,pg_dumpfor PostgreSQL — allow exporting the database data and structure to a file. -
For file systems:
tarandrsynccommands for archiving and synchronizing data. -
In cloud environments: built-in backup services, such as AWS Backup or Google Cloud Storage snapshots.
Example command for MySQL backup:
mysqldump -u user -p database_name > backup.sql
This will create a dump file of the database, which can be used for restoration.