Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
backup gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
slashlinux
n00b
n00b


Joined: 26 Nov 2011
Posts: 62
Location: dan

PostPosted: Thu Apr 05, 2012 3:26 pm    Post subject: backup gentoo Reply with quote

Hello,


I have two servers, and i want to backup from one to another , once at week, how can i do that, with what programms?


thank you
Back to top
View user's profile Send private message
a3li
Retired Dev
Retired Dev


Joined: 02 Sep 2008
Posts: 122
Location: 독일

PostPosted: Thu Apr 05, 2012 3:31 pm    Post subject: Reply with quote

rsync/rsnapshot
_________________
I am Confuism. Do not bother me.
Back to top
View user's profile Send private message
slashlinux
n00b
n00b


Joined: 26 Nov 2011
Posts: 62
Location: dan

PostPosted: Thu Apr 05, 2012 3:33 pm    Post subject: re: Reply with quote

Hello there,


Can you give a good tutorial for this rsync?


Thanks
Back to top
View user's profile Send private message
matomato76
n00b
n00b


Joined: 19 Nov 2010
Posts: 11

PostPosted: Thu Apr 05, 2012 5:07 pm    Post subject: Three steps Reply with quote

1. Enable ssh log on w/o password between source machine and target machine
http://www.linuxproblem.org/art_9.html

2. Find rsync commands working for you.
(1) Decide which directories should be excluded.
- Google search for 'system backup by tar' or something like that will give you a hint
(2) Find a proper rsync command
- Rsync can be done in a couple of ways. If you do backup to a remote machine, rsync-over-ssh is a good choice. Between two partitions on the same machine, just rsync works. Rsync-over-ssh needs step 1.
- My options for remote backup is avoruzx. You may not need z for local backup. Reading man page for the options and others will help you to find out the best options for you.
E.g. man rsync is enough.

3. Setting up cron
Without this, you can do backup manually by 1 and 2.
This step is for automatic, scheduled backup. A simple way is to install vixie-cron, add it to the default run level & start(rc-update, /etc/init.d/...) and then, to edit /etc/crontab. The command(s) from 2 needs to be placed there.

Hope this help you!
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 726
Location: San Diego, CA

PostPosted: Fri Apr 06, 2012 1:38 am    Post subject: Reply with quote

I've been using "Stage4" script for quite a while, and it has worked well for me.

http://en.gentoo-wiki.com/wiki/Custom_Stage4

It creates a tar file and stores it to a local directory, but you can store the tar file to somewhere else with something like the following.

Code:
tar --exclude=... --create --absolute-names --preserve-permissions --verbose --totals / | ssh USER@HOST "cat > ~/stage4.tar"

I'm sure there are plenty of other ways to backup the system, so try and decide for yourself.
__
sol
Back to top
View user's profile Send private message
slashlinux
n00b
n00b


Joined: 26 Nov 2011
Posts: 62
Location: dan

PostPosted: Fri Apr 06, 2012 8:25 pm    Post subject: re: Reply with quote

Thank you very much for helpping me.
Back to top
View user's profile Send private message
HeissFuss
Guru
Guru


Joined: 11 Jan 2005
Posts: 414

PostPosted: Fri Apr 06, 2012 8:30 pm    Post subject: Reply with quote

If you want to be able to restore point in time, you can try rdiff-backup, which is basically rsync that allows point in time restore.
Back to top
View user's profile Send private message
ultraincognito
Guru
Guru


Joined: 03 Jun 2011
Posts: 346
Location: Ukraine

PostPosted: Sat Apr 07, 2012 8:56 am    Post subject: Reply with quote

I archive my Gentoo so:
Code:
# tar cjfp $HOME/system.tar.bz2 --exclude=/proc/* --exclude=/sys/* --exclude=/tmp/* --exclude=/root/* --exclude=/usr/portage/distfiles/* --exclude=/home/* --exclude=/mnt/* /*
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Sat Apr 07, 2012 9:39 am    Post subject: Reply with quote

Unison is another possibility for synchronising two systems.

Will
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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