Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Sep 22, 2011 11:40 am 
Offline
Junior Member

Joined: Tue Jul 19, 2011 9:34 am
Posts: 25
Hi I would like to setup automatic monthly backups of the files and databases on my VPS, I would like the files to be backed up to another server via FTP and to my home computer. I have webmin installed as well on my VPS, if that helps in facilitating setting up the backup. What are my options? Thanks


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 12:15 pm 
Offline
Junior Member

Joined: Tue Jul 19, 2011 9:34 am
Posts: 25
BDW my home computer is Win 7 based


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 12:25 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Monthly backups? Can you really afford to lose 29 days' worth of data in the worst case?

rsync and its family (rdiff-backup, rsnapshot) are capable of backing up only those files that changed since the last backup, so you don't need to transfer all the files over and over again. This makes it more feasible to perform daily or weekly backups, instead of monthly. Problem: rsync doesn't work on Windows unless you mess with cygwin, which is a rather delicate business.

Another popular backup option is Amazon S3. Command-line tools such as s3cmd (with the "sync" option), combined with some shell scripting and cron, would give you automatic backups to S3. I back up one of my sites using this method, twice daily.

Backing up the database is as simple as producing a database dump (e.g. mysqldump) and including the dump file with your regular backup.


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 12:39 pm 
Offline
Junior Member

Joined: Tue Jul 19, 2011 9:34 am
Posts: 25
Thanks, would I be able to set up rsync for regular backups to another hosting account through FTP, instead of Amazon s3?

So there practically is no solution to backup my linode to windows?


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 1:26 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
rsync is its own protocol, it's the same sort of thing as FTP; it can't run over FTP. That's like taking the train on a boat. And now I want turbolifts...

Anyhow, you can rsync home at a regular basis, or use something similar like hybinet mentioned.

Personally, I have a fileserver running Solaris with ZFS. Every night, my server logs in to my linode and syncs all the data down, and then does a ZFS snapshot. The result is nightly incremental backups with trivial access to any one of them; ZFS lets you access snapshots by simply entering a virtual directory for the snapshot without executing any command; just a "cd" right into the snapshot. It's fun.

Of course, there's the whole OpenSolaris-is-dead issue...


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 1:27 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
I'm not sure if rsync supports FTP. Most of the time it is used with SSH. Also, the other host might not like it. Most shared hosts have rules against using their services for anything other than hosting a web site.

You can run rsync on Windows if you install cygwin. But you have to use it in a special command prompt (very inconvenient), and Windows doesn't preserve file and directory permissions so you might need to make adjustments if you ever need to restore your backup.

Or you can install Linux on Windows, using VirtualBox. Then you can do whatever you want on your own virtual Linux computer.

Quote:
ZFS lets you access snapshots by simply entering a virtual directory for the snapshot without executing any command; just a "cd" right into the snapshot. It's fun.

You can do something similar in Linux too, if you use btrfs. But it's still experimental.


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 1:50 pm 
Offline
Junior Member

Joined: Tue Jul 19, 2011 9:34 am
Posts: 25
Ok thanks for the informative replies :)


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 2:34 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
hybinet wrote:
You can do something similar in Linux too, if you use btrfs. But it's still experimental.


I do hope that one day, btrfs can replace zfs, but at the moment there are a few concerns:

1) As you said, it's experimental

2) It's not clear from documentation for btrfs (since there isn't any), but it looks like accessing a snapshot in btrfs involves unmounting the current filesystem and remounting it with a different subvolume. This makes it useless for most use cases, because I have to reboot a machine just to grab some data from a snapshot of the boot drive, or take my whole storage array offline just to grab some old files. Even if you don't have to unmount it (perhaps you mount the volume read-only?) it's a lot more complicated. Hopefully this gets resolved, but this complaint may just be the result of btrfs being poorly documented

3) It's developed by the same people making ZFS, and I'm cautious as to why Oracle is doing both ZFS and btrfs at the same time

Issue 1 will undoubtedly be resolved. Issue 2 will hopefully be resolved, even if it's only done by automated tools that take care of everything automagically. Issue 3 is a concern, but it's GPL'd, so...

Hopefully I can move to btrfs some day.


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 9:46 pm 
Offline
Senior Member
User avatar

Joined: Thu Jun 16, 2011 8:24 am
Posts: 412
Location: Cyberspace
There are actually some GUI programs listed on Wikipedia for rsync, a few of which are listed as working on Windows: http://en.wikipedia.org/wiki/Rsync#Graphical_user_interfaces

_________________
Kris the Piki Geeker


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 10:07 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
duplicity is a handy tool for backing up data to a "dumb" location. At the very least, you could have it back up to a local directory on your server and then scp the resulting files home.

Keep in mind that backing up to home means restores are going to take a very long time. But it's better than nothing, especially if it's just a part of a complete backup plan.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Thu Sep 22, 2011 11:42 pm 
Offline
Senior Member

Joined: Fri Dec 10, 2010 6:45 pm
Posts: 63
Seconding the duplicity recommendation. It supports S3 as well as everything else and encrypts with GPG. Also check out rdiff-backup, which provides a sort of mirror with diffs.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group