LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-24-2005, 10:07 PM   #1
thekillerbean
Member
 
Registered: Jan 2002
Distribution: Ubuntu 12.04.2 (Precise)
Posts: 89

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?

Tia.
 
Old 12-25-2005, 09:44 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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.

then,

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.
 
  


Reply


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 04:01 AM
User groups and accounts documentation Tymestream Linux - Newbie 1 09-03-2004 03:50 PM
backing up user profiles bunnyknight13 Linux - Newbie 2 08-29-2004 10:05 PM
How do I create accounts, groups and so on only using the command line? brynjarh Linux - Newbie 2 07-07-2004 02:42 PM
a user can be in two groups? joeslazenger Linux - Newbie 2 08-13-2002 02:12 PM


All times are GMT -5. The time now is 10:10 PM.

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