|
4828.
|
|
|
When using a tape drive, the filename portions of the script aren't needed because the data is sent directly to the tape device. Some commands to manipulate the tape are needed. This is accomplished using <application>mt</application>, a magnetic tape control utility part of the <application>cpio</application> package.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/backups.xml:487(para)
|
|
4829.
|
|
|
Here is the shell script modified to use a tape drive:
|
|
|
|
A szalagos meghajtó használatához módosított shell-parancsfájl:
|
|
Translated by
Gabor Kelemen
|
|
|
|
Located in
serverguide/C/backups.xml:492(para)
|
|
4830.
|
|
|
#!/bin/bash
####################################
#
# Backup to tape drive script.
#
####################################
# What to backup.
backup_files="/home /var/spool/mail /etc /root /boot /opt"
# Where to backup to.
dest="/dev/st0"
# Print start status message.
echo "Backing up $backup_files to $dest"
date
echo
# Make sure the tape is rewound.
mt -f $dest rewind
# Backup the files using tar.
tar czf $dest $backup_files
# Rewind and eject the tape.
mt -f $dest rewoffl
# Print end status message.
echo
echo "Backup finished"
date
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
#!/bin/bash
####################################
#
# Szalagra biztonsági mentést készítő parancsfájl
#
####################################
# Mit kell menteni.
backup_files="/home /var/spool/mail /etc /root /boot /opt"
# Hová kell menteni.
dest="/dev/st0"
# Kezdési állapotüzenet kiírása.
echo "$backup_files mentése ide: $dest/$archive_file"
date
echo
# A szalag biztosan legyen visszatekerve.
mt -f $dest rewind
# A fájlok mentése a tar segítségével.
tar czf $dest $backup_files
# Visszatekerés és a szalag kiadása.
mt -f $dest rewoffl
# Befejezési állapotüzenet kiírása.
echo
echo "A mentés kész"
date
|
|
Translated by
Gabor Kelemen
|
|
|
|
Located in
serverguide/C/backups.xml:495(programlisting)
|
|
4831.
|
|
|
The default device name for a SCSI tape drive is <filename>/dev/st0</filename>. Use the appropriate device path for your system.
|
|
|
|
Az alapértelmezett eszköznév SCSI szalagos meghajtó esetén a <filename>/dev/st0</filename>. Ehelyett a rendszerének megfelelő eszközútvonalat használja.
|
|
Translated by
Gabor Kelemen
|
|
|
|
Located in
serverguide/C/backups.xml:529(para)
|
|
4832.
|
|
|
Restoring from a tape drive is basically the same as restoring from a file. Simply rewind the tape and use the device path instead of a file path. For example to restore the <filename>/etc/hosts</filename> file to <filename>/tmp/etc/hosts</filename>:
|
|
|
|
A szalagos meghajtóról való helyreállítás alapvetően ugyanaz, mint a fájlból történő. Egyszerűen tekerje vissza a szalagot, és a fájlútvonal helyett használja az eszközútvonalat. Az <filename>/etc/hosts</filename> fájl visszaállítása például a <filename>/tmp/etc/hosts</filename> helyre:
|
|
Translated by
Gabor Kelemen
|
|
|
|
Located in
serverguide/C/backups.xml:534(para)
|
|
4833.
|
|
|
mt -f /dev/st0 rewind
|
|
|
|
mt -f /dev/st0 rewind
|
|
Translated by
Gabor Kelemen
|
|
|
|
Located in
serverguide/C/backups.xml:539(command)
|
|
4834.
|
|
|
tar -xzf /dev/st0 -C /tmp etc/hosts
|
|
|
|
tar -xzf /dev/st0 -C /tmp etc/hosts
|
|
Translated by
Gabor Kelemen
|
|
|
|
Located in
serverguide/C/backups.xml:540(command)
|
|
4835.
|
|
|
Bacula
|
|
|
|
Bacula
|
|
Translated by
Gabor Kelemen
|
|
|
|
Located in
serverguide/C/backups.xml:545(title)
|
|
4836.
|
|
|
<application>Bacula</application> is a backup program enabling you to backup, restore, and verify data across your network. There are Bacula clients for Linux, Windows, and Mac OS X - making it a cross-platform network wide solution.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/backups.xml:546(para)
|
|
4837.
|
|
|
<application>Bacula</application> is made up of several components and services used to manage which files to backup and backup locations:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/backups.xml:552(para)
|