Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Best ways to backup your Gentoo systems

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
44 posts
  • 1
  • 2
  • Next
Author
Message
netswig
n00b
n00b
User avatar
Posts: 71
Joined: Wed Mar 07, 2012 3:29 pm
Location: Laniakea Supercluster

Best ways to backup your Gentoo systems

  • Quote

Post by netswig » Mon Oct 15, 2012 10:10 pm

Just basically want some ways people backup there systems ?
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Mon Oct 15, 2012 11:10 pm

I do not back up the system. Just the user files and system conf.
My Gentoo installation notes.
Please learn how to denote units correctly!
Top
pidsley
Tux's lil' helper
Tux's lil' helper
Posts: 80
Joined: Sat Jun 09, 2012 2:06 pm

  • Quote

Post by pidsley » Tue Oct 16, 2012 12:10 am

Jaglover wrote:I do not back up the system. Just the user files and system conf.
This is also what I do. I use rsync to back up user files and some important config files, but don't try to back up the system.
Top
The Doctor
Bodhisattva
Bodhisattva
User avatar
Posts: 2678
Joined: Tue Jul 27, 2010 10:56 pm

  • Quote

Post by The Doctor » Tue Oct 16, 2012 12:32 am

I just backup my data and kernel .config and make.conf. Those are the 3 things that make my computer mine.
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10898
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Tue Oct 16, 2012 12:46 am

My user files dominate the size of my backups, so a full system backup isn't a big deal. I back up everything. Monthly full plus nightly incrementals automatically to tape. I can reproduce the (nearly) exact state of my major development systems for any given day in the last 2 years. Outside of that window, I recycle tapes, preserving one full backup per year in perpetuity. I use app-backup/flexbackup.

- John
I can confirm that I have received between 0 and 499 National Security Letters.
Top
dmpogo
Advocate
Advocate
Posts: 3717
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Tue Oct 16, 2012 6:14 am

I use backuppc to backup my desktop, laptop and wife's macbook air. But I backup only /home and /etc
Top
netswig
n00b
n00b
User avatar
Posts: 71
Joined: Wed Mar 07, 2012 3:29 pm
Location: Laniakea Supercluster

  • Quote

Post by netswig » Tue Oct 16, 2012 7:40 am

This is interesting.

I thought more people would backup their systems with some sort of 'bit copy' and create some sort of images.
Top
GFCCAE6xF
Apprentice
Apprentice
Posts: 295
Joined: Mon Aug 06, 2012 7:44 am

  • Quote

Post by GFCCAE6xF » Tue Oct 16, 2012 9:41 am

I rsync sda1,3,4 all to a second drive in the machine and also once a week to an external drive.
This includes all of portage, distfiles, you name it.

If I screw up playing around it's very quick to boot up cd, mount and rsync it all back :)
Top
b0nafide
Apprentice
Apprentice
User avatar
Posts: 171
Joined: Sun Feb 17, 2008 9:48 pm
Location: ~/

  • Quote

Post by b0nafide » Tue Oct 16, 2012 3:15 pm

rsync +1
Top
Goverp
Advocate
Advocate
User avatar
Posts: 2404
Joined: Wed Mar 07, 2007 6:41 pm

  • Quote

Post by Goverp » Wed Oct 17, 2012 8:56 am

If you use ext2/3/4, you might like to try app-arch/dump. It's a command-line tool, also suitable for scripting. Seems fine to me, and when I tried a partial restore some time back, it worked well. I backup to a USB 1TB drive.

There's some old discussion about a note from Linus Torvalds saying he didn't recommend it, but if you read it carefully, IMHO it says he doesn't like running any backup within a running system, because you can't be sure of getting a consistent state if applications are running. I run dump after "rc single", which isn't quite as good as rebooting to a different OS and mounting all your target disks R/O, but I expect is good enough. Some day, probably when I next buy a new PC, I'll try a full system restore.
Greybeard
Top
LiamOS
n00b
n00b
User avatar
Posts: 67
Joined: Wed Jun 06, 2012 2:42 pm
Location: Ireland

  • Quote

Post by LiamOS » Wed Oct 17, 2012 6:21 pm

It was a while ago, but I once did a
tar cfjv system.tar.bz2 / --exclude=/proc --exclude=/dev --exc...

I can't remember if that command is exactly the way, but I basically tarred everything and just extracted it later.
Worked fine.
CFLAGS=" -O999999"
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10898
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Wed Oct 17, 2012 7:28 pm

I find I have a little more to say on this topic. The best way to back up your system is with some sort of formal backup program. These support some sort of efficient paradigm such as full plus incremental or differential and always support some sort of logging that helps you recover individual versions of lost files. There are lots of choices—a whole category in the Portage tree, in fact: app-backup. Just a few examples:
  • For large networks of machines, there's Amanda and Bacula.
  • For individual or smaller groups of machines there's backuppc.
  • Flexbackup is particularly friendly to tape, and I love tape. (Tape's the only cost-effective way to keep a really deep backup history and I find that professionally useful.)
rsync can be used by itself but you don't get the benefit of a history of perhaps multiple versions of your backed up files without a lot of script foo. That said, it's entirely possible to construct a good backup system that implements the traditional backup paradigms out of traditional *nix tools, but why bother? Others have already done this for you.

- John
I can confirm that I have received between 0 and 499 National Security Letters.
Top
Gentoo64
n00b
n00b
User avatar
Posts: 52
Joined: Fri Oct 21, 2011 9:33 pm
Location: ::
Contact:
Contact Gentoo64
Website

  • Quote

Post by Gentoo64 » Fri Oct 19, 2012 8:24 am

I use clonezilla it's fast and easy, does my whole drive in ~60 seconds
Top
xenobyte
n00b
n00b
User avatar
Posts: 14
Joined: Wed Nov 30, 2011 11:42 am

  • Quote

Post by xenobyte » Fri Oct 19, 2012 8:34 am

Gentoo64 wrote:I use clonezilla it's fast and easy, does my whole drive in ~60 seconds
Can confirm that. Works really great for me
Ich neige zur Redundanz und manchmal wiederhole ich mich auch
Top
forrestfunk81
Guru
Guru
User avatar
Posts: 567
Joined: Tue Feb 07, 2006 12:33 pm
Location: münchen.de

  • Quote

Post by forrestfunk81 » Fri Oct 19, 2012 1:42 pm

I'm using rsnapshot. It is based on rsync can do multiple full and/or partial backups with hardlinks, network backups, is easy to setup and scriptable.
# cd /pub/
# more beer
Top
kimmie
Guru
Guru
User avatar
Posts: 531
Joined: Wed Sep 08, 2004 8:12 am
Location: Australia

  • Quote

Post by kimmie » Sat Oct 20, 2012 1:41 am

I use xfs for all filesystems, and xfsdump to back-up. It's fast, and I can tailor which directories/files get backed up using the chattr command.
Top
Hypnos
Advocate
Advocate
User avatar
Posts: 2889
Joined: Thu Jul 18, 2002 5:12 pm
Location: Omnipresent

  • Quote

Post by Hypnos » Sat Oct 20, 2012 6:25 am

I wrote a simple howto on rsnapshot which you may find useful.
Personal overlay | Simple backup scheme
Top
dmpogo
Advocate
Advocate
Posts: 3717
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Sat Oct 20, 2012 6:40 am

John R. Graham wrote:I find I have a little more to say on this topic. The best way to back up your system is with some sort of formal backup program. These support some sort of efficient paradigm such as full plus incremental or differential and always support some sort of logging that helps you recover individual versions of lost files. There are lots of choices—a whole category in the Portage tree, in fact: app-backup. Just a few examples:
  • For large networks of machines, there's Amanda and Bacula.
  • For individual or smaller groups of machines there's backuppc.
  • Flexbackup is particularly friendly to tape, and I love tape. (Tape's the only cost-effective way to keep a really deep backup history and I find that professionally useful.)
rsync can be used by itself but you don't get the benefit of a history of perhaps multiple versions of your backed up files without a lot of script foo. That said, it's entirely possible to construct a good backup system that implements the traditional backup paradigms out of traditional *nix tools, but why bother? Others have already done this for you.

- John
I second that, and add rsnapshot to the list. It is important also to distinguish backup as a snapshot of a system, and backup as a history of revisions to the system (which
is traditionally meant as a proper backup). That is do you think you may need to recover a file deleted week ago, or what was done a year ago ? Or you just need to restore the system into the most recent state if the disk fails ?
Top
JanErik
Guru
Guru
Posts: 488
Joined: Mon Oct 28, 2002 9:02 pm
Location: Finland

  • Quote

Post by JanErik » Sat Oct 20, 2012 6:48 am

I use rdiff-backup and rsync for /home, and periodically make a tarball of /.
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Sat Oct 20, 2012 11:43 am

Hi, I use rsync with the Btrfs subvolume power.

https://gentooquebec.org/gwiki/index.ph ... emRescueCD
Top
ppurka
Advocate
Advocate
Posts: 3257
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Sat Oct 20, 2012 12:06 pm

There is also the gentoo stage4method. Not sure if anyone uses it nowadays.
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Top
user
Apprentice
Apprentice
Posts: 246
Joined: Sun Feb 08, 2004 4:57 pm

  • Quote

Post by user » Sat Oct 20, 2012 12:46 pm

my 2 steps:
1) rdiff-backup with include/exclude pattern to another disk
2) tar-ing with snapshot facility (full per month, snap per day), crypt and upload to several hosting services

losing disk or human error, step 1) recover
losing living home, step 2) recover from full+last snap upload
Top
kriz
Apprentice
Apprentice
User avatar
Posts: 231
Joined: Wed Jan 22, 2003 8:54 pm

  • Quote

Post by kriz » Sat Oct 20, 2012 12:48 pm

Hypnos wrote:I wrote a simple howto on rsnapshot which you may find useful.
thx alot 4 this awesome howto.
i've taken the liberty to modify/currect the cron-jobs and monthly-script ;)
Top
Hypnos
Advocate
Advocate
User avatar
Posts: 2889
Joined: Thu Jul 18, 2002 5:12 pm
Location: Omnipresent

  • Quote

Post by Hypnos » Sat Oct 20, 2012 1:04 pm

kriz wrote:thx alot 4 this awesome howto.
I'm glad to help -- for so many problems people have with Gentoo the easiest solution is "have backups."
i've taken the liberty to modify/currect the cron-jobs and monthly-script ;)
:oops: Thanks for correcting the cron jobs -- they're correct on my machine, but I didn't copy and paste them properly on the howto!

As for the monthly config file, it's not necessary to exclude /dev, /proc and /sys if the "one_fs" flag is enabled.
Personal overlay | Simple backup scheme
Top
kriz
Apprentice
Apprentice
User avatar
Posts: 231
Joined: Wed Jan 22, 2003 8:54 pm

  • Quote

Post by kriz » Sat Oct 20, 2012 1:21 pm

As for the monthly config file, it's not necessary to exclude /dev, /proc and /sys if the "one_fs" flag is enabled.
that explain a lot
have googled around and no, i haven't finish the hole entry
Q: Using rsnapshot 1.1.6, when I specify the root filesystem as a backup point, rsnapshot backs up each top level directory seperately. If I'm using one_fs, this makes it impossible to exclude things like the /proc filesystem.
This has been fixed in rsnapshot 1.2.0. You are encouraged to upgrade. Make sure to read the upgrade guide in the INSTALL file, included with the program. If you don't want to, or can't upgrade, read on for a workaround.
:oops:
There is nothing in the desert... and no man needs nothing.
Top
Post Reply

44 posts
  • 1
  • 2
  • Next

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic