Backup solutions for linux

Linux software discussion forum.

Backup solutions for linux

Postby QuantumKnot on February 27th, 2008, 1:17 pm

I'd like some recommendation on an easy way to make incremental backups. I'm currently looking at rdiff-backup, which is a python script that calls rsync.

http://www.nongnu.org/rdiff-backup/examples.html

It doesn't look too hard to use. But I'm curious to see if there are other solutions.
Image
User avatar
QuantumKnot
Member
 
Posts: 99
Joined: January 21st, 2008, 11:58 am

Re: Backup solutions for linux

Postby kamil on February 27th, 2008, 8:24 pm

rdiff-backup seems like a good tool to do it. I used to use the following incremental backup that uses rsync and is written in perl (Ben forwarded it my way):
Code: Select all
#!/usr/bin/perl -w
use strict;

my $host="kamil\@spl64_0";
my $bkuppath="/home/kamil/rsync/backup_new/backup";
my $local="/path_to_backup/";
my $n;
my $N=10;

print("deleting backup.$N ...\n");
system("ssh $host rm -rf $bkuppath.$N");

for($n=$N-1; $n>0; $n--)
{
    print("copying backup.$n ...\n");
    system("ssh $host mv $bkuppath.$n $bkuppath.".($n+1));
}

print("copying backup.current ...\n");
system("ssh $host cp -al $bkuppath.current $bkuppath.1");

print("rsync backup.current ...\n");
system("rsync -vaL -e ssh --delete $local $host:$bkuppath.current");

however I dont bother making incremental backups anymore... I just use rsync for full backups once a week :idea:
Code: Select all
rsync -vae ssh --delete /path_to_backup user@spl2:/storage_on_server

if you really want to use a truly incremental approach, then use git, svn or cvs :P
User avatar
kamil
Linux Adept
 
Posts: 118
Joined: January 18th, 2008, 1:22 am
Location: Brisbane, Australia


Return to Software

Who is online

Users browsing this forum: No registered users and 0 guests

dsplabs homelinux bloglinux forums new! travel photographyawklores new! cryptographyjames' home
©2009 dsplabs.com.au