I have a backup file that is generated locally daily, is there an easy way to FTP it offsite with a cron job? asked 22 Feb '12, 11:02 unflinching |
The usual method of doing this is using answered 23 Feb '12, 02:09 todork |
I made a simple python script that:
This is then run daily through cron. I've posted the code here: http://community.webfaction.com/questions/4481/easy-way-to-backup-all-webapps-and-databases?page=1#12292 answered 01 Feb '13, 11:30 Madsn |
Hello, This is an old thread, but I decided to share a simple script that does the job:
Of course, change the variables at the start of the script to your values. Sincerely, Valentin I. answered 03 Feb '13, 08:46 valentini I am running a backup scrip that has the password in it as in the example cited here. I have (in part): MyUSER="bici" # USERNAME MyPASS="somerandomstring" # PASSWORD MyHOST="localhost" # Hostname
But ever since moving to a new server i get an error message: "Warning: Using a password on the command line interface can be insecure." why would i get this error message after having moved from Web368(?) to web515
(05 Jun '17, 00:23)
baba
Your new server runs a newer version of MySQL. The error message doesn't exist in the folder version.
(05 Jun '17, 20:31)
seanf
|
Does the file always have the same name when it's generated?
BTW, I prefer to pull backups instead of pushing them (i.e. downloading them on the offsite-location instead of uploading it to it).