You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Systemd units do not inherit your user's environment variables, so you may need to change the path to the Stag executable and repository location in the unit file.
57
+
this enables you to easily manage Stag mounts using Systemd commands.
67
58
68
59
# Usage
69
60
70
61
To begin using Stag, first create a repository. For example, to create a repository named `myrepo`
71
62
72
63
```console
73
-
$ stag init myrepo
64
+
$ stagfs init myrepo
74
65
```
75
66
76
67
> [!NOTE]
@@ -79,25 +70,25 @@ $ stag init myrepo
79
70
You can list all repositories at any time with
80
71
81
72
```console
82
-
$ stag ls
73
+
$ stagfs ls
83
74
```
84
75
85
76
Stag works by mounting your repository as a virtual filesystem. To do this, create a mount point and mount your repository
86
77
87
78
```console
88
79
$ mkdir mnt
89
-
$ stag mount myrepo mnt
80
+
$ stagfs mount myrepo mnt
90
81
$ cd mnt
91
82
```
92
83
93
84
> [!TIP]
94
85
> If you use the Systemd unit file, you can mount a repository in the background with:
> Systemd will warn you about using `/`, to avoid issues, replace all `/` with `-`, e.g.:
99
90
> ```
100
-
> systemctl --user enable now stag@wallpapers:-home-user-wallpapers-
91
+
> systemctl --user enable now stagfs@wallpapers:-home-user-wallpapers-
101
92
> ```
102
93
103
94
Add files to your repository as you would in any directory, by copying or moving them into the mount point. For demonstration purposes, let's create the following files
0 commit comments