Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Best ways to backup your Gentoo systems
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
slugggerzzz
n00b
n00b


Joined: 07 Mar 2012
Posts: 57
Location: Manchester, UK

PostPosted: Mon Oct 15, 2012 10:10 pm    Post subject: Best ways to backup your Gentoo systems Reply with quote

Just basically want some ways people backup there systems ?
_________________
Slugggerzzz ...
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4666
Location: Saint Amant, Acadiana

PostPosted: Mon Oct 15, 2012 11:10 pm    Post subject: Reply with quote

I do not back up the system. Just the user files and system conf.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
pidsley
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2012
Posts: 80

PostPosted: Tue Oct 16, 2012 12:10 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
The Doctor
Veteran
Veteran


Joined: 27 Jul 2010
Posts: 1479

PostPosted: Tue Oct 16, 2012 12:32 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7802
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Oct 16, 2012 12:46 am    Post subject: Reply with quote

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
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2289
Location: Canada

PostPosted: Tue Oct 16, 2012 6:14 am    Post subject: Reply with quote

I use backuppc to backup my desktop, laptop and wife's macbook air. But I backup only /home and /etc
Back to top
View user's profile Send private message
slugggerzzz
n00b
n00b


Joined: 07 Mar 2012
Posts: 57
Location: Manchester, UK

PostPosted: Tue Oct 16, 2012 7:40 am    Post subject: Reply with quote

This is interesting.

I thought more people would backup their systems with some sort of 'bit copy' and create some sort of images.
_________________
Slugggerzzz ...
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 229
Location: England, UK

PostPosted: Tue Oct 16, 2012 9:41 am    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message
b0nafide
Apprentice
Apprentice


Joined: 17 Feb 2008
Posts: 153
Location: ~/

PostPosted: Tue Oct 16, 2012 3:15 pm    Post subject: Reply with quote

rsync +1
Back to top
View user's profile Send private message
Goverp
Guru
Guru


Joined: 07 Mar 2007
Posts: 341

PostPosted: Wed Oct 17, 2012 8:56 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
LiamOS
n00b
n00b


Joined: 06 Jun 2012
Posts: 56
Location: Kerry/Dublin, Ireland

PostPosted: Wed Oct 17, 2012 6:21 pm    Post subject: Reply with quote

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"
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7802
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Oct 17, 2012 7:28 pm    Post subject: Reply with quote

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
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
Gentoo64
n00b
n00b


Joined: 21 Oct 2011
Posts: 47
Location: ::

PostPosted: Fri Oct 19, 2012 8:24 am    Post subject: Reply with quote

I use clonezilla it's fast and easy, does my whole drive in ~60 seconds
Back to top
View user's profile Send private message
xenobyte
n00b
n00b


Joined: 30 Nov 2011
Posts: 14

PostPosted: Fri Oct 19, 2012 8:34 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
forrestfunk81
Guru
Guru


Joined: 07 Feb 2006
Posts: 402
Location: münchen.de

PostPosted: Fri Oct 19, 2012 1:42 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
kimmie
Guru
Guru


Joined: 08 Sep 2004
Posts: 531
Location: Australia

PostPosted: Sat Oct 20, 2012 1:41 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2867
Location: Omnipresent

PostPosted: Sat Oct 20, 2012 6:25 am    Post subject: Reply with quote

I wrote a simple howto on rsnapshot which you may find useful.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2289
Location: Canada

PostPosted: Sat Oct 20, 2012 6:40 am    Post subject: Reply with quote

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 ?
Back to top
View user's profile Send private message
JanErik
Guru
Guru


Joined: 28 Oct 2002
Posts: 455
Location: Finland

PostPosted: Sat Oct 20, 2012 6:48 am    Post subject: Reply with quote

I use rdiff-backup and rsync for /home, and periodically make a tarball of /.
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 13046
Location: Ste-Foy,Canada

PostPosted: Sat Oct 20, 2012 11:43 am    Post subject: Reply with quote

Hi, I use rsync with the Btrfs subvolume power.

https://gentooquebec.org/gwiki/index.php/Discussion:Sauvegarde_Rsync_avec_Btrfs_et_SystemRescueCD
_________________
Sysadmin of GentooQuébec.org
Wiki
Signature
IRC on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3205

PostPosted: Sat Oct 20, 2012 12:06 pm    Post subject: Reply with quote

There is also the gentoo stage4method. Not sure if anyone uses it nowadays.
_________________
emerge --quiet redefined | E17 vids: I, II
Back to top
View user's profile Send private message
user
Tux's lil' helper
Tux's lil' helper


Joined: 08 Feb 2004
Posts: 132

PostPosted: Sat Oct 20, 2012 12:46 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
kriz
Apprentice
Apprentice


Joined: 22 Jan 2003
Posts: 231

PostPosted: Sat Oct 20, 2012 12:48 pm    Post subject: Reply with quote

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 ;)
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2867
Location: Omnipresent

PostPosted: Sat Oct 20, 2012 1:04 pm    Post subject: Reply with quote

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."

Quote:
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
Back to top
View user's profile Send private message
kriz
Apprentice
Apprentice


Joined: 22 Jan 2003
Posts: 231

PostPosted: Sat Oct 20, 2012 1:21 pm    Post subject: Reply with quote

Quote:
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

Quote:
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.

Quote:
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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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
You cannot vote in polls in this forum