Blob


1 version=pmwiki-2.3.20 ordered=1 urlencoded=1
2 agent=w3m/0.5.3+git20230121
3 author=jrmu
4 charset=UTF-8
5 csum=
6 ctime=1682935876
7 host=104.167.242.140
8 name=Openbsd.Restore
9 rev=4
10 targets=Openbsd.Dump
11 text=(:title Restore:)%0a%0aUsed to restore partitions on OpenBSD made with [[Openbsd.Dump|dump]].%0a%0aTo restore from the dump file to the current directory, first check the size of the dump:%0a%0a[@%0a$ du -sh home.dmp%0a29G home.dmp%0a@]%0a%0aWe will need at least 29G of disk space in order to restore @@home.dmp@@.%0a%0a'''WARNING''': @@restore@@ will overwrite the current directory! Double check your current working directory with [[https://man.openbsd.org/pwd|pwd]] before proceeding.%0a%0a[@%0a$ doas restore -rf home.dmp%0a@]%0a%0a@@-r@@ restores the file system and @@-f@@ reads it from the file home.dmp.%0a%0a'''NOTE''': It is recommended that you restore on a newly created filesystem, see [[https://man.openbsd.org/restore|the man page]] for details.%0a%0a!! Interactive Restore%0aYou can start restore in interactive mode. This gives you limited shell capabilities to navigate the backup to find the files you wish to restore. You start it with -i for interactive. Note your prompt changes to ''restore >''.%0a%0a[@%0adoas restore -if var.dmp%0arestore >%0a@]%0a%0aYou can use cd and ls to view the files. When you find a file or directory you wish to restore you use the ''add'' command to add it to the extraction list. Once you have all the files selected you wish to extract you run the ''extract'' command%0a%0a[@%0a# Extract current directory and everything under it%0arestore > add%0a# list files in the www/logs dir%0arestore > ls www/logs%0a./www/logs:%0aaccess.log access.log.2.gz error.log.0.gz error.log.3.gz error.log.6.gz%0aaccess.log.0.gz access.log.3.gz error.log.1.gz error.log.4.gz%0aaccess.log.1.gz error.log error.log.2.gz error.log.5.gz%0arestore > add www/logs/access.log%0arestore > extract%0aYou have not read any tapes yet.%0aUnless you know which volume your file(s) are on you should start%0awith the last volume and work towards the first.%0aSpecify next volume #: 1%0aset owner/mode for '.'? [yn] y%0arestore > q%0a@]%0a%0a''dump'' and ''restore'' were created for tape backup systems so expect your backup is on multiple ''volumes''. If you backed up to a file, it'll always be 1 unless you specified a blocksize causing it to break the backup into multiple volumes. See the man page for details.%0a
12 time=1714948223
13 title=Restore
14 author:1714948223=jrmu
15 diff:1714948223:1684211835:=14,15d13%0a%3c '''WARNING''': @@restore@@ will overwrite the current directory! Double check your current working directory with [[https://man.openbsd.org/pwd|pwd]] before proceeding.%0a%3c %0a53c51%0a%3c ''dump'' and ''restore'' were created for tape backup systems so expect your backup is on multiple ''volumes''. If you backed up to a file, it'll always be 1 unless you specified a blocksize causing it to break the backup into multiple volumes. See the man page for details.%0a---%0a> ''dump'' and ''restore'' were created for tape backup systems so expect your backup is on multiple ''volumes''. If you backed up to a file, it'll always be 1 unless you specified a blocksize causing it to break the backup into multiple volumes. See the man page for details.%0a\ No newline at end of file%0a
16 host:1714948223=104.167.242.140
17 author:1684211835=izzyb
18 csum:1684211835=Added documents on using the interactive restore feature
19 diff:1684211835:1682936553:=20,51c20%0a%3c '''NOTE''': It is recommended that you restore on a newly created filesystem, see [[https://man.openbsd.org/restore|the man page]] for details.%0a%3c %0a%3c !! Interactive Restore%0a%3c You can start restore in interactive mode. This gives you limited shell capabilities to navigate the backup to find the files you wish to restore. You start it with -i for interactive. Note your prompt changes to ''restore >''.%0a%3c %0a%3c [@%0a%3c doas restore -if var.dmp%0a%3c restore >%0a%3c @]%0a%3c %0a%3c You can use cd and ls to view the files. When you find a file or directory you wish to restore you use the ''add'' command to add it to the extraction list. Once you have all the files selected you wish to extract you run the ''extract'' command%0a%3c %0a%3c [@%0a%3c # Extract current directory and everything under it%0a%3c restore > add%0a%3c # list files in the www/logs dir%0a%3c restore > ls www/logs%0a%3c ./www/logs:%0a%3c access.log access.log.2.gz error.log.0.gz error.log.3.gz error.log.6.gz%0a%3c access.log.0.gz access.log.3.gz error.log.1.gz error.log.4.gz%0a%3c access.log.1.gz error.log error.log.2.gz error.log.5.gz%0a%3c restore > add www/logs/access.log%0a%3c restore > extract%0a%3c You have not read any tapes yet.%0a%3c Unless you know which volume your file(s) are on you should start%0a%3c with the last volume and work towards the first.%0a%3c Specify next volume #: 1%0a%3c set owner/mode for '.'? [yn] y%0a%3c restore > q%0a%3c @]%0a%3c %0a%3c ''dump'' and ''restore'' were created for tape backup systems so expect your backup is on multiple ''volumes''. If you backed up to a file, it'll always be 1 unless you specified a blocksize causing it to break the backup into multiple volumes. See the man page for details.%0a\ No newline at end of file%0a---%0a> '''NOTE''': It is recommended that you restore on a newly created filesystem, see [[https://man.openbsd.org/restore|the man page]] for details.%0a\ No newline at end of file%0a
20 host:1684211835=75.158.138.249
21 author:1682936553=Naglfar
22 csum:1682936553=add dump reference
23 diff:1682936553:1682935876:minor=3c3%0a%3c Used to restore partitions on OpenBSD made with [[Openbsd.Dump|dump]].%0a---%0a> Used to restore partitions on OpenBSD made with dump.%0a
24 host:1682936553=90.94.176.192
25 author:1682935876=Naglfar
26 csum:1682935876=Add Openbsd Restore
27 diff:1682935876:1682935876:=1,20d0%0a%3c (:title Restore:)%0a%3c %0a%3c Used to restore partitions on OpenBSD made with dump.%0a%3c %0a%3c To restore from the dump file to the current directory, first check the size of the dump:%0a%3c %0a%3c [@%0a%3c $ du -sh home.dmp%0a%3c 29G home.dmp%0a%3c @]%0a%3c %0a%3c We will need at least 29G of disk space in order to restore @@home.dmp@@.%0a%3c %0a%3c [@%0a%3c $ doas restore -rf home.dmp%0a%3c @]%0a%3c %0a%3c @@-r@@ restores the file system and @@-f@@ reads it from the file home.dmp.%0a%3c %0a%3c '''NOTE''': It is recommended that you restore on a newly created filesystem, see [[https://man.openbsd.org/restore|the man page]] for details.%0a\ No newline at end of file%0a
28 host:1682935876=90.94.176.192