|
4826.
|
|
|
Tape Drives
|
|
|
|
Teyp Sürücüler
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/backups.xml:482(title)
|
|
4827.
|
|
|
A tape drive attached to the server can be used instead of an NFS share. Using a tape drive simplifies archive rotation, and makes taking the media off-site easier as well.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/backups.xml:483(para)
|
|
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:
|
|
|
|
Burada, teyp sürücü kullanmak için shell betiği düzenlendi:
|
|
Translated by
Matthew East
|
|
|
|
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
####################################
#
# Teyp sürücü betiğine yedekle.
#
####################################
# Ne yedeklenecek.
backup_files="/home /var/spool/mail /etc /root /boot /opt"
# Nereye yedeklenecek.
dest="/dev/st0"
# Başlangıç durum mesajını yaz.
echo "Backing up $backup_files to $dest"
date
echo
# Teypin tekrar sarıldığından emin olun.
mt -f $dest rewind
# tar kullanarak dosyaları yedekle.
tar czf $dest $backup_files
# Teypi geri sar ve çıkart.
mt -f $dest rewoffl
# Son durum mesajını yaz.
echo
echo "Yedekleme bitti"
date
|
|
Translated by
Matthew East
|
|
|
|
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.
|
|
|
|
SCSI teyp sürücü için mevcut aygıt adı <filename>/dev/st0</filename>'dır. Sistemin için uygun aygıt konumunu kullanın.
|
|
Translated by
Matthew East
|
|
|
|
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>:
|
|
|
|
Teyp sürücüsünü düzenlemek, temel olarak bir dosyayı düzenlemeğe benzer. Teypi geri sarın ve dosya konumu yerine aygıt yolunu kullanın. Örneğin <filename>/etc/hosts</filename> dosyasını <filename>/tmp/etc/hosts</filename> olarak düzenlemek için:
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/backups.xml:534(para)
|
|
4833.
|
|
|
mt -f /dev/st0 rewind
|
|
|
|
mt -f /dev/st0 rewind
|
|
Translated by
Matthew East
|
|
|
|
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
Matthew East
|
|
|
|
Located in
serverguide/C/backups.xml:540(command)
|
|
4835.
|
|
|
Bacula
|
|
|
|
Bacula
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/backups.xml:545(title)
|