DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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?!
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.
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?
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?
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.