Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung Nächste Überarbeitung Beide Seiten, nächste Überarbeitung | ||
lpi2:xfs [2013/12/10 11:10] ingo_wichmann [xfsrestore] |
lpi2:xfs [2016/06/21 10:55] ingo_wichmann [xfsrestore] |
||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
Debian 6: xfsprogs xfsdump | Debian 6: xfsprogs xfsdump | ||
===== xfs Dateisystem anlegen ===== | ===== xfs Dateisystem anlegen ===== | ||
+ | Dieses Beispiel setzt voraus, dass eine [[lpi1:lvm|LVM VolumeGroup]] namens ''vg_centos6'' existiert, und darin noch mindestens 3 G frei sind. | ||
+ | |||
Logical Volumes anlegen: | Logical Volumes anlegen: | ||
- | pvcreate /dev/sda2 | ||
- | vgextend vg_centos6 /dev/sda2 | ||
lvcreate --name xfs_production --size 1G vg_centos6 | lvcreate --name xfs_production --size 1G vg_centos6 | ||
lvcreate --name xfs_backup --size 2G vg_centos6 | lvcreate --name xfs_backup --size 2G vg_centos6 | ||
Zeile 51: | Zeile 51: | ||
überschriebene Datei wiederherstellen: | überschriebene Datei wiederherstellen: | ||
xfsrestore -f /mnt/xfs_backup/2012/KW37/1.dump -t | grep test1.txt | xfsrestore -f /mnt/xfs_backup/2012/KW37/1.dump -t | grep test1.txt | ||
- | xfsrestore -f /mnt/xfs_backup/2012/KW37/1.dump -i | + | xfsrestore -f /mnt/xfs_backup/2012/KW37/1.dump -i /mnt/xfs_production |
(xfsrestore dialog) | (xfsrestore dialog) | ||
add test1.txt | add test1.txt | ||
- | quit | + | extract |
(bash) | (bash) | ||
- | echo /mnt/xfs_production/test1.txt | + | ls /mnt/xfs_production/test1.txt |