e-mail   
 Menu
  Home
  Download
  Top 10 Downloads
  Last 15 New Files
  Web Links
  Tips
  Last 15 New Tips
  NLM Programming
  Admins Club





SUPLA System
Internet of Things




Installation and Administration






Polish Forum SUSE


 
Who's Online

 There are currently,
7 guest(s)
that is (are) online.
 


Technical Information

Back to List of Categories

Technical Information about
  A Little YaST Magic
  A Slideshow for Your KDE Wallpaper
  Add Novell Support to Your Firefox Search Engine
  Adding To The Panels In Gnome.
  Akregator - RSS News Reader
  An Introduction to WBEM and OpenWBEM in SUSE LINUX
  Authenticating SUSE LINUX to eDirectory via LDAP
  Basic Mounting Differences between Windows and Linux
  Beginner's Guide to Using Novell SUSE LINUX's Build Utility
  Browsing Files
  Card Readers on SUSE LINUX 9.2 Professional?
  Changing the Default Browser in Gnome
  Developing Perl CGI scripts on SUSE LINUX
  Do I Have Permission?
  Double SYNC -- Using RSYNC Simultaneously With and Without Branch Office for Data Backup
  Dumb Question: Mounting Linux CDs
  Easy Command-Line Introduction
  Easy Way to Debug SSL Connections
  Enabling an Interactive Startup in Novell/SUSE LINUX
  Exploring MySQL 4.1 and PHP 5 on SUSE LINUX
  Extend Your Panels Using Gnome Drawers.
  Firefox Speed Tip
  Fix Java Errors With ConsoleOne On Linux
  Fix Your Mouse Wheel...
  Gimp -- Closing In on Photoshop...
  Gimp Tips Part 1: Resizing Images
  Gimp Tips Part 2: Rounding Corners
  Gimp Tips Part 3: Fading Photography Edges
  Gimp Tips Part 4: Selective Colorization
  Gimp Tips Part 5: Plugins a Plenty - Adding Light
  Gimp Tips Part 6: Using The Clone Tool
  Google Auto-fill Replica for Linux
  How a Corrupted USB Drive Was Saved by GNU/Linux
  How to Implement Login Scripts into a Pure Linux Environment
  How to install and connect an External Modem on a Linux PC
  How to Install the Novell Client for Linux on SUSE Linux 10.0
  How to launch applications at login in Gnome
  How to Remote Control Linux
  How to setup a Linux application to automatically startup when you login.
  How to share Files and Printers Between Linux and MS Windows with Samba
  How to uninstall the Novell Client for Linux
  How to upgrade the Novell Client for Linux
  How to use SMB without turning off the firewall
  How's the Weather?
  HTML Development Tools in Linux
  Informative Bash Prompt
  Install and Use QEMU on SUSE 9.2
  Install Linux Frequently, Without the Hassle
  Installing Apache, PHP, and MySQL on SUSE LINUX Professional
  Installing RPM Files
  Integrating Novell Linux Desktop into a Novell NetWare network
  Introduction to Oracle 10g R1 (10.1.0.3) on SUSE LINUX Professional 9.3
  iPrint Printers on Novell Linux Desktop
  Linux Scheduling Priorities Explained
  Make a Misbehaving Program Quit
  Manually Mounting a USB Flash Drive in Linux
  Migrating To Linux, Advantages Over Windows 9.x And XP
  Minimize Your Maximizing with Multiple Desktops
  Mounting NetWare Volumes On NLD Illustrated
  Move Your /home to Another Computer
  Mozilla Mail Review
  Need a Backup?
  Novell Client Settings with Windows Terminal Server
  Novell Linux Desktop Equivalents of Windows Software - New and Improved
  Novell Linux Desktop System Upgrade How-To
  Partitioning Hard Drive for Linux Install
  Perform Remote SuSE Installations With Virtual Network Computing
  Quick Intro to Klipper
  Quick Shortcuts in The Gimp
  Reset Your Lost Root Password
  Resizing Your Gnome / KDE Panels
  Runlevels in SUSE LINUX
  Running Existing Win32 Applications on SUSE LINUX
  Service Command in /etc/init.d/
  Setting Shortcut Keys
  Setting up a Linux NFS Install Source for Your LAN
  Should I choose Novell Linux Desktop or SUSE LINUX Professional as my desktop?
  Starting Services From the Command Line On SuSE LINUX
  Sticky Notes for Gnome
  SUSE LINUX 9.3 Professional Review
  Sync Up The Taskbar and the Desktop in Gnome
  System Upgrade How-To
  Taking Screenshots in Linux
  The Basics of Messaging in the Cross-Platform GroupWise Client
  The Novell Client for Linux (beta).
  Transparent Panels in Gnome
  Trick Out Your KDE Desktop
  Understanding the YAST Software Module Options
  Updating Your Software with Red Carpet
  Using dsbk on Linux and Unix
  Using iFolder to Synchronize Firefox Bookmarks
  Using Multiple Swap Partitions In 2.4
  Using openSSH to Securely Access Remote Systems
  What FTP client should I use on Linux?
  What Is Logical Volume Management?
  What is so great about Firefox?
  Which Graphic Formats For What?
  Windows Shortcuts for Firefox Tabs on Linux
  Windows to Linux: A Beginner's Guide
  Windows Users Can Feel at Home Exploring Files in Linux
  WLAN interface as the Default
  Work With User Selection Icons In KDM
  YAST Online Update De-Mystified

Technical Information
 Using dsbk on Linux and Unix

Printer-friendly version

Posted: 5 Oct 2005

Introduction

In this article, we examine the use of the dsbk utility on Linux. An administrator familiar with the usage of this utility on NetWare may find the implementation on Linux confusing.

While the focus of this article is on the use of dsbk on the Linux platform, the utility operates identically on both the UNIX and Linux platforms: for simplicity's sake, we will discuss the utility in the context of Linux; anything that applies to the Linux implementation also applies to the UNIX implementations.

About dsbk

When eDirectory 8.7 originally shipped, Novell included a collection of utilities under the umbrella of the eDirectory Management Toolbox (commonly referred to as eMBox). This set of tools requires configuration of Role-Based Services (RBS) in order to use the various tools. In the Linux world, this means that a non-privileged user could access the utilities to perform dsrepair operations, backup/restore operations, and so on.

The eMBox client utility - called edirutil - could be run in a number of different modes: a batch mode, in a text-based shell, using individual commands entirely from the command-line, or from a graphical interface. In the batch and command-line modes, an administrator could invoke the utility to perform backup and restore operations from a shell script, possibly for inclusion in a crontab.

Because eMBox is configured to require Role Based Services (RBS), it is necessary to invoke the command-line including a username and password. Many administrators were frustrated by this, not wanting to leave privileged eDirectory accounts exposed by having the password stored in the clear in a shell script or batch file. This can also be a bit of a challenge when restoring; RBS must be configured on the target server or tree prior to restoring the backup: restoring a DIB required a throwaway eDirectory installation with RBS configured.

Third-party backup software vendors asked if there might be a way to launch an eDirectory backup using eMBox (which backs up the eDirectory DIB to a file in the filesystem) as part of a pre-execution script on NetWare; because of security concerns with the cleartext password, Novell provided a utility NLM called DSBK.NLM.

Administrators of eDirectory on platforms other than NetWare have since asked that the utility be ported to the other platforms. With the release of eDirectory 8.7.3.7, Novell has included the dsbk utility for the Linux and Unix platforms; the Windows platform version will be released at a later time (currently scheduled for the next eDirectory service pack).

Using the dsbk Utility on Linux

Unlike the NetWare version, the Linux version of dsbk requires a configuration file. The configuration file contains a single line that points to another file to be created and used to pass commands to the dsbk module through the ndstrace utility.

NOTE: In eDirectory 8.7.3.7, you must execute this script as root

Let's look at an example. In /etc/dsbk.conf, we set a value of:

/root/dsbk.command

This file is then used as an intermediary for the dsbk module.

The output for the command is written into the eDirectory log file (/var/nds/ndsd.log):

DSBK HELP
To get help on a specific function type "help <function name>"
Current functions:
backup
restore
restadv
getconfig
setconfig
cancel

Using the command dsbk help <commandname>, the command options are identical to the NetWare platform. By setting up dsbk, commands can be entered into a crontab to execute dsbk getconfig and dsbk backup commands on a regular basis, allowing for full backups once weekly and incrementals on the other days, or whatever combinations are desired.

Tip/strong> When using the dsbk utility interactively, have a second terminal window open with tail -f /var/nds/ndsd.log running so that the output to entered commands is immediately readable.

Once the backup is completed, back it up using standard filesystem backup utilities.

A Strategy for Using dsbk

The most obvious use for dsbk is to perform nightly backups of the database. This can be done using a crontab entry, such as:

0 2 * * * dsbk backup -f/root/dsbk/`date --iso-8601=seconds`.dibback -l/root/dsbk/`date --iso-8601=seconds`.log -t -b

This crontab entry performs a full backup every morning at 2:00 AM and stores the backup and log file in /root/dsbk. The filename used is an ISO 8601 date format with resolution to the second. The format used has no embedded spaces in it, making it easier to deal with in a scripted sense. After running this script, files are created with names such as:

2005-09-22T21:48:37-0600.dibback
2005-09-22T21:48:37-0600.log

The log file in this example contains:

|==================DSBackup Log: Backup================|
Backup type: Full
Log file name: /root/dsbk/2005-09-22T21:48:37-0600.log
Backup started: 2005-9-22'T21:48:38
Backup file name: /root/dsbk/2005-09-22T21:48:37-0600.dibback
Server name: T=JHENDERSON-873SP7O=novellOU=servicesCN=jshlaptop
Current Roll Forward Log: 00000001.log
DS Version: 1055279
Backup ID: 43337B15
Starting database backup...
Database backup finished
Completion time 00:00:01
Backup completed successfully

Another option for automating backups might be:

0 2 * * 0 dsbk backup -f/root/dsbk/`date --iso-8601=seconds`.dibback -l/root/dsbk/`date --iso-8601=seconds`-full.log -t -b
0 2 * * 1-6 dsbk backup -f/root/dsbk/`date --iso-8601=seconds`.dibback -l/root/dsbk/`date --iso-8601=seconds`-incr.log -t -i

These crontab entries perform a full backup every Sunday morning at 2:00 AM and incrementals on Monday-Saturday at 2:00 AM.

One consideration is that the backups could end up occupying too much space on disk; cleanup of old backup files should be performed once they have been backed up to offline storage.






Since 2003

Portal posiada akceptację firmy Novell Polska
Wszystkie materiały dotyczące produktów firmy Novell umieszczono za zgodą Novell Polska
Portal has been accepted by the Novell Polska
All materials concerning products of Novell firm are placed with Novell Polska consent.
NetWare is a registered trademark of Novell Inc. in the United States and other countries.
Windows is a trademark or a registered trademark of Microsoft Corporation in the United States and other countries.
Sybase is a registered trademark of Sybase Inc. in the United States of America.
Other company and product names are trademarks or registered trademarks of their respective owners.