|
3627.
|
|
|
For more in depth <application>crontab</application> options see <xref linkend="backup-shellscript-references"/>.
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:244(para)
|
|
3628.
|
|
|
Restoring from the Archive
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:250(title)
|
|
3629.
|
|
|
Once an archive has been created it is important to test the archive. The archive can be tested by listing the files it contains, but the best test is to <emphasis>restore</emphasis> a file from the archive.
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:251(para)
|
|
3630.
|
|
|
To see a listing of the archive contents. From a terminal prompt:
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:257(para)
|
|
3631.
|
|
|
tar -tzvf /mnt/backup/host-Monday.tgz
|
|
|
|
tar -tzvf /mnt/backup/host-Monday.tgz
|
|
Translated by
Cristi Nistor
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:261(command)
|
|
3632.
|
|
|
To restore a file from the archive to a different directory enter:
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:265(para)
|
|
3633.
|
|
|
tar -xzvf /mnt/backup/host-Monday.tgz -C /tmp etc/hosts
|
|
|
|
tar -xzvf /mnt/backup/host-Monday.tgz -C /tmp etc/hosts
|
|
Translated by
Cristi Nistor
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:269(command)
|
|
3634.
|
|
|
The <emphasis>-C</emphasis> option to <application>tar</application> redirects the extracted files to the specified directory. The above example will extract the <filename>/etc/hosts</filename> file to <filename>/tmp/etc/hosts</filename>. <application>tar</application> recreates the directory structure that it contains.
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:271(para)
|
|
3635.
|
|
|
Also, notice the leading <emphasis>"/"</emphasis> is left off the path of the file to restore.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/backups.xml:276(para)
|
|
3636.
|
|
|
To restore all files in the archive enter the following:
|
|
|
|
(no translation yet)
|
|
Translated by
Adi Roiban
|
|
Reviewed by
Adi Roiban
|
|
|
|
Located in
serverguide/C/backups.xml:281(para)
|