Skip to content

Commit 320fd4b

Browse files
author
Guy
committed
added syvinit init.d file example
1 parent 25ebfaf commit 320fd4b

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,27 @@ sudo update-rc.d grub-btrfsd defaults
297297
By default the daemon is watching the directory `/.snapshots`. If the daemon should watch a different directory, it can be edited by passing different arguments to it.
298298
Arguments are passed to grub-btrfsd via `DAEMON_ARGS` and `SNAPSHOTS`
299299
variables in the script `/etc/init.d/grub-btrfsd`.
300-
The variable `SNAPSHOTS` defines the path the daemon will monitor for snapshots.
300+
The variable `SNAPSHOTS` defines the path the daemon will monitor for
301+
snapshots.
302+
303+
After editing, the applicable portion of the file should look like this:
304+
305+
``` bash
306+
SNAPSHOTS="/.snapshots" # Snapper in the root directory
307+
# SNAPSHOTS="/run/timeshift/backup/timeshift-btrfs/snapshots" # Timeshift < v22.06
308+
309+
## Optional arguments to run with the daemon
310+
# Append options to this like this:
311+
# DAEMON_ARGS="--syslog --timeshift-auto --verbose"
312+
# Possible options are:
313+
# -t, --timeshift-auto Automatically detect Timeshifts snapshot directory for timeshift >= 22.06
314+
# -o, --timeshift-old Look for snapshots in directory of Timeshift <v22.06 (requires --timeshift-auto)
315+
# -l, --log-file Specify a logfile to write to
316+
# -v, --verbose Let the log of the daemon be more verbose
317+
# -s, --syslog Write to syslog
318+
319+
DAEMON_ARGS="--syslog"
320+
```
301321

302322
##### 🔒 Snapshots on LUKS encrypted devices
303323
By default, grub-btrfs generates entries that does not load modules for dealing with encrypted devices.

0 commit comments

Comments
 (0)