Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do you backup your system/config ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
el muchacho
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2015
Posts: 77

PostPosted: Mon Jun 08, 2015 10:45 am    Post subject: How do you backup your system/config ? Reply with quote

Hi,

i've been using a good old backup of my /home directory and my portage config (@world, and use flags) as a disaster recovery solution. Pretty simple but I don't need a more complex solution. In case I have a massive problem, i'll reinstall everything from scratch, reinstate my /home and that's it.

I'm curious to hear how to you manage this, though ?
Back to top
View user's profile Send private message
katfish
Tux's lil' helper
Tux's lil' helper


Joined: 14 Nov 2011
Posts: 147

PostPosted: Mon Jun 08, 2015 10:57 am    Post subject: Reply with quote

I use simple tarballs which I updated frequently.
Back to top
View user's profile Send private message
Apheus
Guru
Guru


Joined: 12 Jul 2008
Posts: 420

PostPosted: Mon Jun 08, 2015 11:03 am    Post subject: Reply with quote

Rsnapshot with sources: (1) a bind mount of /, and (2) /home. To an external usb disk. Once a week, and some monthly snapshots. Nice for restoring single files when I have messed something up. I needed the complete /home backup once after a complete system hangup and destroyed-beyond-repair btrfs filesystem (I suspect hardware issues, that motherboard was a bitch).

I would not like to reinstall gentoo in case of failure, the restore-from-backup is much quicker:

Code:
mkdir /tmp/root
mount --bind / /tmp/root
rsync -a --delete --force /run/media/user/backup/backup/hostname/weekly.0/root/ /tmp/root/


To be completely safe, this should be done from another booted system. But I tried it once out of curiosity and it worked. Of course, no other administrative tasks should be done in the meantime.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


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

PostPosted: Mon Jun 08, 2015 2:34 pm    Post subject: Reply with quote

For my servers, tape: monthly full + nightly automatic incremental backups of everything. Disaster recovery thus invlolves minimal setup plus restore of the current set.

For my workstations, I also use tape (with my second best tape drive) but the backups are more sporadic as all of my critical data is on the servers.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
ShanaXXII
Apprentice
Apprentice


Joined: 29 Jun 2014
Posts: 281
Location: Canada

PostPosted: Mon Jun 08, 2015 3:12 pm    Post subject: Reply with quote

I just use a bash script that's composed of a lot of $ cp -uivr
and some variables for where I would like to back it up to :lol:
Back to top
View user's profile Send private message
mrbassie
Guru
Guru


Joined: 31 May 2013
Posts: 538

PostPosted: Wed Jun 10, 2015 10:57 am    Post subject: Reply with quote

I just use a stage4 tarball.
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Wed Jun 10, 2015 1:39 pm    Post subject: Reply with quote

app-backup/fsarchiver for the Server and the Desktop combined with lvm snapshots to do them on the run and consistant.
Back to top
View user's profile Send private message
Goverp
l33t
l33t


Joined: 07 Mar 2007
Posts: 669

PostPosted: Thu Jun 11, 2015 9:28 am    Post subject: Reply with quote

Another option: app-arch/dump, if you're using ext2/3/4. I've used it for years.

That said, I've only ever needed to restore odd files, not the entire system, so whilst I expect it would be fine, I can't vouch for it. Has anyone restored their entire system from any of the other backup techniques listed?
_________________
Greybeard
Back to top
View user's profile Send private message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 225

PostPosted: Thu Jun 11, 2015 9:44 am    Post subject: Reply with quote

Using stage4 tarballs. Successfully restored everything on two ocasions.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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