I want to make a backup script, that makes a .tar.gz of a folder I define, say fx /root/tekkit/world
This .tar.gz file should then be uploaded to a FTP server, named by the time it was uploaded, for example: 07-10-2012-13-00.tar.gz
How should such backup script be written?
I already figured out the .tar.gz part - just need the naming and the uploading to FTP.
I know that FTP is not the most
I've spent an unreasonable amount of time banging out my first shell script like some ham-fisted Neanderthal I hope that you can learn from my idiocy and spare yourself some pain in the future.
hello all,
i have the below script that we used to backup our DB using oracle's utility called RMAN. This has been working fine, but the issue is when the backup fails and we re-start it, it backups the whole thing again. Example.
lets say i have 5 database on my system(db1,db2,db3,db4,db5) and we use below script which loops for a file called /etc/oratab which has my DB names in it.
I have a server running Ubuntu 10, it mostly has PHP websites with MySQL databases.
I need to write a backup script
to backup the database
to zip up all the php files.
Is it better security to do write my backup script in PHP or shell? Or does it not matter?
I like PHP more, because that lets me have the database password in only one place, a PHP file.
I have written a shell script that creates a backup of my MySQL database.
I have a sample NAS server (QNAP TS-210), with very limited Linux on-board (although a bit reinforced with Optware/IPKG). I'm a Linux newbie. After digging through Internet I was able to write my own backup script, using rsync for syncing files between NAS hard drive and external USB drives, and with CRON for running this script periodically.
Everything was fine until few days before.
Hi,
I'm running a shell script to do a daily backup of my mysql database. The backup is done using:
Code:
mysqldump db1 > db1.sql --user=rootuser --password=rootpassword && mysqldump db2 > db2.sql --user=rootuser --password=rootpassword
This file is saved in my root directory replacing the old/exisiting backups.
I'm trying to setup a backup script on Ubuntu. Every day I want to copy my local source directory to a backup directory on a remote server uniquely named with the date. (e.g., backup-jan1/, backup-jan2/, etc) It should store a mirror of the earliest state and use difference files to recreate the new backup points.
This is pretty simple with rsync.
I was checking the mysql backup script that being designed by senior mysql admin (left long time ago), just in order to implement the same setup for different client.