FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 03-23-2009, 02:51 PM
Pol Hallen
 
Default users backup (will change the root hard disk)

Hi folks :-)

I need change my root hard disk and I'd like save all system users (many
because each has a mailbox).

Is there a tool (or which program) can I use for do this?

thanks :-)

Pol


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 03-23-2009, 03:16 PM
Daryl Styrk
 
Default users backup (will change the root hard disk)

Pol Hallen wrote:

Hi folks :-)

I need change my root hard disk and I'd like save all system users (many
because each has a mailbox).


Is there a tool (or which program) can I use for do this?

thanks :-)

Pol





Almost too many to choose from..


http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s-diff-backup

http://wiki.debian.org/BackupAndRecovery

I'd probably just go with tar



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 03-23-2009, 03:42 PM
Tapani Tarvainen
 
Default users backup (will change the root hard disk)

On Mon, Mar 23, 2009 at 04:51:19PM +0100, Pol Hallen (debenvaio@fuckaround.org) wrote:

> Hi folks :-)
>
> I need change my root hard disk and I'd like save all system users (many
> because each has a mailbox).
>
> Is there a tool (or which program) can I use for do this?

Are you saying you don't have a regular backup system in place? Eek.

Anyway, there are lots of excellent backup programs around,
but if you can connect both disks at once, you could just use the old
disk as a backup and copy the stuff from there after moving system to
the new disk. Better yet if you are using LVM, just use pvmove - with
hotswap disks you could even replace the root disk without booting.

--
Tapani Tarvainen


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 03-23-2009, 04:02 PM
Paul E Condon
 
Default users backup (will change the root hard disk)

On 2009-03-23_16:51:19, Pol Hallen wrote:
> Hi folks :-)
>
> I need change my root hard disk and I'd like save all system users (many
> because each has a mailbox).
>
> Is there a tool (or which program) can I use for do this?
>
> thanks :-)
>
> Pol

I'm guessing that you want something you can do -now-, as opposed to a thoroughly
designed backup system. For -now-:

Buy an external USB hard drive, the kind that has moving parts inside. You can
get a terabyte for under $200 at Costco. If your root disk is bigger that that
spend more money, you have enough money to buy a bigger USB hard drive. Get one
that's big enough to hold it all.

Use rsync. Run as root user.

Mount the USB drive at /media/USB

Look at /etc/mtab to discover what device name was assigned to the USB

Unmount the USB but don't disconnect it.

Write an ext3 file system onto the USB so that you don't have to deal
with the naming and file size limitations of vfat.

Remount the USB

Create a top level target directory on the USB
#> mkdir /media/USB/target

Do something like
#> rsync -a /home/ /media/USB/target

Notice that 'home' has slashes both left and right. This is important
to rsync.

Follow with rsync of other directories in /. E.g. /etc, /boot, /root,
etc.

Do NOT do #> rsync -a /media/ /media/USB/target ;-(

Think about the order in which you do the directories so that you get
the most important stuff first, in case the root drive fails while you
are working.

Don't worry about getting backup of the software that you got from
Debian. Newer, better versions are available from debian.org once you
have a new HD installed. If you have time, you might do

#> dpkg --get-selections >/media/USB/target/myselections

HTH
--
Paul E Condon
pecondon@mesanetworks.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 03-23-2009, 04:16 PM
Pol Hallen
 
Default users backup (will change the root hard disk)

> Are you saying you don't have a regular backup system in place? Eek.
No :-)
I've rsync script that does backup everydays.

On my new server I need to recreate only the structure of all users without do
whole backup of system.

thanks

Pol


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 03-23-2009, 09:08 PM
Robert Holtzman
 
Default users backup (will change the root hard disk)

On Mon, 23 Mar 2009, Paul E Condon wrote:



Create a top level target directory on the USB
#> mkdir /media/USB/target

Do something like
#> rsync -a /home/ /media/USB/target

Notice that 'home' has slashes both left and right. This is important
to rsync.

Follow with rsync of other directories in /. E.g. /etc, /boot, /root,
etc.

Do NOT do #> rsync -a /media/ /media/USB/target ;-(


Too much work. Use:

rsync -vaHz --exclude '/proc' --exclude '/sys'
--exclude '/media' / /media/USB/target


--
Bob Holtzman
The age of consent should be raised to 22 and made mandatory


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 09:57 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org