Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-24-2005, 09:07 PM   #1
Registered: Jan 2002
Distribution: Ubuntu 12.04.2 (Precise)
Posts: 90

Rep: Reputation: 16
Backing up user accounts and groups.

I'm in the process of trialing a disaster recovery test and wanted a method of automating the backing up of user accounts and groups, then re-creating these accounts and groups after restoring from tape backup. What I had started doing is writing a Perl script then figured that maybe there ought to be a tool for exactly this purpose.

Is there such a tool and could someone point me to it?

Old 12-25-2005, 08:44 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Dar could do it.

Read the Dar tutorial. Write a simple shell script to include:
cd /home (or wherever) to begin the backup there.
write the dar command line with options:
a) files (by extension) to not compress because they are already compressed.
b) folders to prune; i.e. include the folder in the directory tree, buy not the contents.
c) minimum file size to compress because some files are larger after compression than before compression.
d) many other options listed in the tutorial.


cd /etc to include system config files.
write another command line for dar.

Then set up a cron job to run the backup at specified times.

Best thing about dar: the files are archived individually. If one is corrupt, you loose only that one and not the entire archive.

Dar can be set up to write to floppy/cd/dvd/tape/harddrive.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
backing up accounts zamri Linux - Networking 9 12-15-2005 03:01 AM
User groups and accounts documentation Tymestream Linux - Newbie 1 09-03-2004 02:50 PM
backing up user profiles bunnyknight13 Linux - Newbie 2 08-29-2004 09:05 PM
How do I create accounts, groups and so on only using the command line? brynjarh Linux - Newbie 2 07-07-2004 01:42 PM
a user can be in two groups? joeslazenger Linux - Newbie 2 08-13-2002 01:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration