Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Hosting Forum

Web Hosting Forum Discuss web hosting related stuff.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 03-14-2012, 07:34 AM
Website's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 11-15-10
Posts: 315
iTrader: 0 / 0%
Exclamation How to get a backup with cronjob and get it saved in another hosting account?

How do i get my daily backups saved in another host which i already have the ftp access info?

I already get my daily backups with below commands
mysqldump --opt -Q -u USERNAME --password=PASSWORD DATABASE_NAME | gzip > /home/server/public_html/folder/h_saturday.gz

But i want this backup to be saved in another hosting. My hosting company told me that i cant keep my backup files in the same account. So Is there a way to get the cronjob save the backup files to another hosting?
 
Reply With Quote
  #2 (permalink)  
Old 03-15-2012, 05:12 AM
Junior Member
 
Join Date: 10-25-11
Posts: 15
iTrader: 0 / 0%
Doesn't your host provide backups?
 
Reply With Quote
  #3 (permalink)  
Old 03-15-2012, 05:24 AM
GMF's Avatar
GMF GMF is offline
Contributing Member
Latest Blog:
None

 
Join Date: 11-03-11
Location: Austria
Posts: 1,175
iTrader: 0 / 0%
So, you can have cronjobs? should be no problem then, I think. You could try to Secure copy the file to your other host.

Code:
http://en.wikipedia.org/wiki/Secure_copy
Hope that helps
 
Reply With Quote
  #4 (permalink)  
Old 03-15-2012, 10:38 AM
Website's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 11-15-10
Posts: 315
iTrader: 0 / 0%
Quote:
Doesn't your host provide backups?
Yeah but i dont trust them nor their backup files. I have seen all cases. SO i wanna have my own up-to-date copy


Quote:
So, you can have cronjobs? should be no problem then, I think. You could try to Secure copy the file to your other host.
Yeah but i have to store the file in my ftp to secure copy. I dont wanna store the file because my hosting company complaints about it. I just need a cron job command to store the file on another host. It should be pretty easy.
 
Reply With Quote
  #5 (permalink)  
Old 03-15-2012, 11:03 PM
pyaar's Avatar
Member
 
Join Date: 03-08-12
Posts: 30
iTrader: 0 / 0%
Again cron jobs that always create a problem for the server.
Sorry it looks strange that your hosting did not provide the Backup facility.
Take the whole backup by using Backup directory that will be the easy way.Because by which method you are try to take that create a problem for the website.Some of the parts will not work(99.9 percent sure in future or present,specially forums and heavy websites). Can i know your website name .If its not private.

Last edited by pyaar; 03-15-2012 at 11:06 PM. Reason: A new line will be added
 
Reply With Quote
  #6 (permalink)  
Old 03-16-2012, 01:34 AM
GMF's Avatar
GMF GMF is offline
Contributing Member
Latest Blog:
None

 
Join Date: 11-03-11
Location: Austria
Posts: 1,175
iTrader: 0 / 0%
Quote:
Originally Posted by Website View Post
Yeah but i have to store the file in my ftp to secure copy. I dont wanna store the file because my hosting company complaints about it. I just need a cron job command to store the file on another host. It should be pretty easy.
Just wanted to write something about cronjob and SCP but then I realized that you need to write a password.... But I found something that looks promising. A tutorial with rsync and cronjob.. Might be what you need

Code:
http://troy.jdmz.net/rsync/index.html
 
Reply With Quote
  #7 (permalink)  
Old 03-16-2012, 02:18 PM
Junior Member
 
Join Date: 01-31-12
Posts: 25
iTrader: 0 / 0%
Many providers perform daily backups. But, it is still necessary to find other ways to keep other copies of your backups. Some companies offer additional backup services at a very fair price. That is one other option you could ask your provider about to make sure that you always have a current backup.
 
Reply With Quote
  #8 (permalink)  
Old 03-19-2012, 12:11 AM
Member
Latest Blog:
None

 
Join Date: 07-05-10
Posts: 34
iTrader: 0 / 0%
If you setup passwordless authentication this should work for you.

# mysqldump --opt -Q -u USERNAME --password=PASSWORD DATABASE_NAME | gzip > /home/server/public_html/folder/h_saturday.gz; scp h_saturday.gz remotehost:location ; rm -f h_saturday.gz
__________________
Quality WebHosting | 24x7 Priority Support | 1-Click Script Installer | Weekly Offsite Backups
TheSHosting.com - Try Us Out. We won't let you down!
Only $0.01 with coupon code ALLOFF
 
Reply With Quote
  #9 (permalink)  
Old 03-19-2012, 05:52 AM
ScriptMan's Avatar
Super Moderator
 
Join Date: 02-10-07
Location: Central Kentucky
Posts: 10,073
iTrader: 4 / 100%
Quote:
Originally Posted by Website View Post
How do i get my daily backups saved in another host which i already have the ftp access info?
phpMyBackupPro is free (GPL) and will do everything you want to do including FTP the file to another site or email it to you. The script can run as a true cron or embedded in another file on your site.

I have only dabbled with it so I have not fully tested it.
__________________
SEO does not mean Spam Everywhere Online
Scriptman's Playhouse || Ramblings from an old man
2013 resolution: Don't feed trolls
ScriptMan
 
Reply With Quote
  #10 (permalink)  
Old 04-11-2012, 10:13 AM
Website's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 11-15-10
Posts: 315
iTrader: 0 / 0%
Exclamation

Quote:
Originally Posted by ScriptMan View Post
phpMyBackupPro is free (GPL) and will do everything you want to do including FTP the file to another site or email it to you. The script can run as a true cron or embedded in another file on your site.

I have only dabbled with it so I have not fully tested it.
I liked this one so far. But i havent actually tried it much yet.
 
Reply With Quote
  #11 (permalink)  
Old 07-27-2012, 03:52 PM
Contributing Member
 
Join Date: 07-27-12
Posts: 65
iTrader: 0 / 0%
Modify your .htacces.
 
Reply With Quote
  #12 (permalink)  
Old 07-27-2012, 08:01 PM
Contributing Member
Latest Blog:
None

 
Join Date: 07-27-12
Posts: 52
iTrader: 0 / 0%
If you're able to connect to the database from the other box, run the mysqldump from there.. if you can't, then tell your hosting provider to allow your db user to connect from that other IP.
__________________
Hosting Forum | Webmaster Links
 
Reply With Quote
  #13 (permalink)  
Old 07-27-2012, 09:41 PM
snakeair's Avatar
Super Moderator
 
Join Date: 12-31-07
Location: Medford, NJ
Posts: 42,042
iTrader: 3 / 100%
Quote:
Originally Posted by atyq View Post
Modify your .htacces.
Care to go into more details about modifing the .htacces?

We are looking for Quality Posts
__________________
Newbiz Advertising - A resourceful blog

Like us on Facebook: facebook.com/Newbizshop

Premium WordPress Themes - A list of themes.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Hosting Forum

Reply

Tags
cron job host save ftp


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saved By the Bell is back South Forum Lobby 28 06-15-2006 11:47 PM
Hosting with email backup imlek Web Hosting Forum 2 03-31-2004 05:42 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 03:44 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.