Skip to content

Commit 504c403

Browse files
author
Christian Kauhaus
committed
Man page for backy-fuse
1 parent f688b11 commit 504c403

File tree

1 file changed

+137
-0
lines changed

1 file changed

+137
-0
lines changed

man/backy-fuse.1.rst

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
==========
2+
backy-fuse
3+
==========
4+
5+
------------------------------------------------------
6+
export backy images via filesystem in userspace (FUSE)
7+
------------------------------------------------------
8+
9+
:Author: Christian Kauhaus <kc@flyingcircus.io>
10+
:Version: @version@
11+
:Manual section: 1
12+
:Manual group: User commands
13+
14+
15+
SYNOPSIS
16+
========
17+
18+
**backy-fuse** [**-d** *BACKUPDIR*] *MOUNTPOINT*
19+
20+
21+
DESCRIPTION
22+
===========
23+
24+
Provide access to all backy backup images of a source via a virtual filesystem.
25+
They can be loop-mounted to retrieve individual files from backups. Each revision found will be
26+
exported as individual image. Images are made accessible in read-write mode, but modifications
27+
are never written to the underlying chunk store.
28+
29+
See **Examples** below for a restore walk-through.
30+
31+
32+
OPTIONS
33+
=======
34+
35+
**-d** *BACKUPDIR*, **--basedir** *BACKUPDIR*
36+
Backy data directory containing `*.rev` files.
37+
38+
**-o** *MOUNTOPTS*, **--mountopts** *MOUNTOPTS*
39+
Additional options to pass to the underlying **mount(8)** invocation. Defaults to
40+
**allow_root** which lifts the restriction that the superuser is normally unable to access
41+
FUSE filesystems. See **fuse(8)** for a list of allowed options.
42+
43+
**-V**, **--version**
44+
Show version.
45+
46+
**-h**, **--help**
47+
Show brief or detailed help screen.
48+
49+
50+
EXIT STATUS
51+
===========
52+
53+
Please note that backy-fuse runs as long as the filesystem is mounted. Use **fusermount -u**
54+
*MOUNTPOINT* to unmount the filesystem recovery has been finished.
55+
56+
0
57+
FUSE filesystem has been mounted and unmounted successfully.
58+
1
59+
Backup directory could not be locked or revision list could not be initialized.
60+
61+
backy-fuse does not exit on I/O error but reports them through the mounted filesystem.
62+
63+
64+
ENVIRONMENT
65+
===========
66+
67+
RUST_LOG
68+
Enable additional logging to stderr. Set to **info** or **debug** to increase level of
69+
verbosity.
70+
71+
72+
FILES
73+
=====
74+
75+
/etc/fuse.conf
76+
Must contain **user_allow_other** so that the FUSE filesystem can be mounted with the
77+
default **allow_root** option. Invoke backy-fuse with **-o ""** if that setting is not
78+
available.
79+
80+
81+
EXAMPLE
82+
=======
83+
84+
1. Explore revisions
85+
--------------------
86+
87+
Mount backup images to `/mnt/backy`::
88+
89+
$ backy-fuse -d /srv/backy/testvm /mnt/backy
90+
91+
(backy-fuse keeps running)
92+
93+
Then explore or copy images from a second terminal::
94+
95+
$ ls -l /mnt/backy
96+
97+
Don't forget to unmount the FUSE filesystem when finished:
98+
99+
$ fusermount u /mnt/backy
100+
101+
102+
2. Restore files
103+
----------------
104+
105+
Mount backup images::
106+
107+
$ backy-fuse -d /srv/backy/testvm /mnt/backy
108+
109+
Select revision to restore from. In this example, we will be restoring from revision
110+
`tAGKE5rrxReggVMtoPSr7`.
111+
112+
Set up loop device to access partitions inside the image::
113+
114+
# losetup -f -P --show /mnt/backy/tAGKE5rrxReggVMtoPSr7
115+
/dev/loop1
116+
117+
Loop mount the first partition found in the image::
118+
119+
# mount -oloop /dev/loop1p1 /mnt/restore
120+
121+
After finishing restore operations, unmount the loop mount first::
122+
123+
# umount /mnt/restore
124+
125+
Then unregister the loop device::
126+
127+
# losetup -d /dev/loop1
128+
129+
Finally, unmount the FUSE filesystem::
130+
131+
$ fusermount -u /mnt/backy
132+
133+
134+
SEE ALSO
135+
========
136+
137+
fuse(8), mount(8), fusermount(1)

0 commit comments

Comments
 (0)