LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-20-2014, 04:10 PM   #1
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Rep: Reputation: 35
Recommend me backup software


Hi all

After playing with Debian for a few days and loving it so far, after the 3rd (or was it 4th) reinstall due to me being a twat I think the sensible thing to do is to get some kind of backup running.

With so much choice, I figured I would be wise to ask for some recommendations to at least narrow down the choices.

What I am looking for (ideally)

1. Backup to network location (Windows Share)
2. Would be nice to support incremental/differential backups
3. Online (not as in cloud, but as in while system is running)
4. Easy / Well documented restore process from CLI (as I will probably need it from recovery boot, cant rely on X)
5. Free!

Thanks all
 
Old 10-20-2014, 04:39 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I think that backuppc (package with same name) meets all your needs.

Evo2.
 
Old 10-20-2014, 05:04 PM   #3
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Thanks!

I have installed it but I'm getting so confused with setting it up properly, could you help? I havent made any changes yet in case I mess them up, it's just a few basic things.

For now lets keep it simple - say I want to backup my whole system to an external USB hard drive.

I cant find where to specify the backup location?!
 
Old 10-20-2014, 05:40 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

you need to read the documentation. See /usr/share/doc/backuppc/BackupPC.html and the files in /usr/share/doc/backuppc/examples/

You'll need to configure /etc/backuppc/hosts, /etc/backuppc/config.pl and create various hostfoo.pl files.

Evo2.
 
Old 10-20-2014, 05:45 PM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by hongman View Post
I cant find where to specify the backup location?!
That is $Conf{TopDir} in /etc/backuppc/config.pl The default is /var/lib/backuppc. You can either change that variable or make your /var/lib/backuppc a symlink to your desired location.

Evo2.
 
Old 10-20-2014, 06:18 PM   #6
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Thank you
 
Old 10-21-2014, 12:05 AM   #7
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Ok, 2 part question. On running the job I am immediately getting a Tar exited with error 512 () status error.

I googled this and as a result performed these steps:

I have edited the config.pl file as per this doc http://backuppc.sourceforge.net/faq/localhost.html

The backup destination is set to /mnt/backups which is my windows share.

my sudoers file looks like this, I believe this is correct?

Code:
# User privilege specification
root    ALL=(ALL:ALL) ALL
backuppc ALL = NOPASSWD: /bin/tar

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL
I am currently running a manual tar which is working...

Code:
cd /mnt/backups
tar -cvpzf 21-10-14.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/tmp --exclude=/mnt --exclude=/media --exclude=/dev /
2nd question is - are those exclusions sane, and are there any others I can omit?
 
Old 10-21-2014, 12:49 AM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

your /etc/sudoers looks ok to me. Regarding the excludes, I would probably instead be tempted to be explicit about what to include. Eg
Code:
tar -cvpzf 2014-10-21.tar.gz /home /etc /var/log
However, your needs/wants may vary.

Cheers,

Evo2.
 
Old 10-21-2014, 12:56 AM   #9
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
New problem! *sigh*

I rebooted just to make sure it wasnt something simple like that (windows habit).

But now the backuppc service will not start?

Code:
root@lynx:/mnt/backups/backuppc# service backuppc start
[....] Starting backuppc...2014-10-21 06:53:52 Can't create a test hardlink between a file in /mnt/backups/backuppc/pc and /mnt/backups/backuppc/cpool.  Either these are different file systems, or this file system doesn't support hardlinks, or these directories don't exist, or there is a permissions problem, or the file system is out of inodes or full.  Use df, df -i, and ls -ld to check each of these possibilities. Quitting...
I have checked and /mnt/backups dir exists, and I can write to it, all seems ok?
 
Old 10-21-2014, 01:55 AM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

the error message explains what to do to work out why making the hardlink failed.

Evo2.
 
Old 10-21-2014, 06:48 AM   #11
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Well I changed the backup path to a USB drive, same error. Changed it back to default /var/lib/backuppc and it works...

However still failing with tar.

In any case I have discovered a program called TimeShift which seems to do what I want it to do!
 
Old 10-23-2014, 01:38 PM   #12
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,063

Rep: Reputation: 47
usb is (probably) FAT32? if so, it doesn't support hardlinks.
 
Old 10-23-2014, 11:47 PM   #13
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
I'm not even sure what hard links are haha.

Still, timeshift is really quick and has saved my hindside a few times now, I'm going to stick to that
 
Old 10-24-2014, 02:10 PM   #14
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
OK, I just have to know. What the hell is the timeshift you are using?

I just ran, in Sid;
Code:
sam@lounge:~$ apt-cache search timeshift
kradio4 - comfortable radio application for KDE
timeshift - Bash script for doing timeshift TV.
There is, as you can see, a timeshift package listed. Don't think it has much to do with backups.

So, where are you finding and using the timeshift you have.
 
Old 10-24-2014, 02:37 PM   #15
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
http://www.teejeetech.in/p/timeshift.html

So so so easy to set up and install, and does exactly what I want.

Each snapshot is incremental as well so it takes little space!

Good retention policies, and has saved my ass a few times already from messing about with things.

Only things left for when I can be bothered is to suss out command line operation (mainly in case X fails) and also how to set it to launch as root when logging in as normal user.

If I just add it to startuo menu it errors on log in with permissions, so I have to remember to start it as root manually otherwise it doesnt do the scheduled backups.

Compared to bacula, backuppc, etc its just so lite and hasle free!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where can I go to recommend an idea for a new software? foyonoro Linux - Hardware 4 01-13-2011 11:49 PM
Windows Backup Software (diff backup without archive bit) nkhajanchi.mg@gmail.com Linux - Software 4 09-09-2009 09:29 AM
Recommend newsfeed software? JordanH Linux - Software 5 04-25-2005 06:34 AM
Please recommend me new backup tape drive. tommilaiho Linux - Hardware 3 11-14-2003 07:55 AM
what Radius software would you recommend??? dm0nkz Slackware 1 03-28-2003 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration