mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-08-23 16:56:17 +08:00
Readme: added instructions for --timeshift-old
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
This commit is contained in:
12
README.md
12
README.md
@@ -104,6 +104,8 @@ Disable colors in output.
|
|||||||
* `-l / --log-file`
|
* `-l / --log-file`
|
||||||
This arguments specifies a file where grub-btrfsd should write log messages.
|
This arguments specifies a file where grub-btrfsd should write log messages.
|
||||||
* `-s / --syslog`
|
* `-s / --syslog`
|
||||||
|
* `-o / --timeshift-old`
|
||||||
|
Look for snapshots in `/run/timeshift/backup/timeshift-btrfs` instead of `/run/timeshift/$PID/backup/timeshift-btrfs.` This is to be used for Timeshift versions <22.06.
|
||||||
* `-t / --timeshift-auto`
|
* `-t / --timeshift-auto`
|
||||||
This is a flag to activate the auto detection of the path where Timeshift stores snapshots. Newer versions (>=22.06) of Timeshift mount their snapshots to `/run/timeshift/$PID/backup/timeshift-btrfs`. Where `$PID` is the process ID of the currently running Timeshift session. The PID is changing every time Timeshift is opened. grub-btrfsd can automatically take care of the detection of the correct PID and directory if this flag is set. In this case the argument `SNAPSHOTS_DIR` has no effect.
|
This is a flag to activate the auto detection of the path where Timeshift stores snapshots. Newer versions (>=22.06) of Timeshift mount their snapshots to `/run/timeshift/$PID/backup/timeshift-btrfs`. Where `$PID` is the process ID of the currently running Timeshift session. The PID is changing every time Timeshift is opened. grub-btrfsd can automatically take care of the detection of the correct PID and directory if this flag is set. In this case the argument `SNAPSHOTS_DIR` has no effect.
|
||||||
* `-v / --verbose`
|
* `-v / --verbose`
|
||||||
@@ -160,8 +162,6 @@ sudo systemctl enable grub-btrfsd
|
|||||||
```
|
```
|
||||||
|
|
||||||
##### 💼 Snapshots not in `/.snapshots`
|
##### 💼 Snapshots not in `/.snapshots`
|
||||||
NOTE: This works also for Timeshift versions < 22.06, the path to watch would be `/run/timeshift/backup/timeshift-btrfs/snapshots`.
|
|
||||||
|
|
||||||
By default the daemon is watching the directory `/.snapshots`. If the daemon should watch a different directory, it can be edited with
|
By default the daemon is watching the directory `/.snapshots`. If the daemon should watch a different directory, it can be edited with
|
||||||
```bash
|
```bash
|
||||||
sudo systemctl edit --full grub-btrfsd
|
sudo systemctl edit --full grub-btrfsd
|
||||||
@@ -184,10 +184,11 @@ EnvironmentFile=/etc/default/grub-btrfs/config
|
|||||||
# SNAPSHOTS_DIR Snapshot directory to watch, without effect when --timeshift-auto
|
# SNAPSHOTS_DIR Snapshot directory to watch, without effect when --timeshift-auto
|
||||||
# Optional arguments:
|
# Optional arguments:
|
||||||
# -t, --timeshift-auto Automatically detect Timeshifts snapshot directory
|
# -t, --timeshift-auto Automatically detect Timeshifts snapshot directory
|
||||||
|
# -o, --timeshift-old Activate for timeshift versions <22.06
|
||||||
# -l, --log-file Specify a logfile to write to
|
# -l, --log-file Specify a logfile to write to
|
||||||
# -v, --verbose Let the log of the daemon be more verbose
|
# -v, --verbose Let the log of the daemon be more verbose
|
||||||
# -s, --syslog Write to syslog
|
# -s, --syslog Write to syslog
|
||||||
ExecStart=/usr/bin/grub-btrfsd --syslog /path/to/your/snapshot/directory
|
ExecStart=/usr/bin/grub-btrfsd --syslog /.snapshots
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
@@ -282,19 +283,20 @@ After editing, the file should look like this:
|
|||||||
# Distributed under the terms of the GNU General Public License v3
|
# Distributed under the terms of the GNU General Public License v3
|
||||||
|
|
||||||
## Where to locate the root snapshots
|
## Where to locate the root snapshots
|
||||||
#snapshots="/.snapshots" # Snapper in the root directory
|
snapshots="/.snapshots" # Snapper in the root directory
|
||||||
#snapshots="/run/timeshift/backup/timeshift-btrfs/snapshots" # Timeshift < v22.06
|
#snapshots="/run/timeshift/backup/timeshift-btrfs/snapshots" # Timeshift < v22.06
|
||||||
snapshots="/path/to/your/snapshot/directory"
|
|
||||||
|
|
||||||
## Optional arguments to run with the daemon
|
## Optional arguments to run with the daemon
|
||||||
# Possible options are:
|
# Possible options are:
|
||||||
# -t, --timeshift-auto Automatically detect Timeshifts snapshot directory for timeshift >= 22.06
|
# -t, --timeshift-auto Automatically detect Timeshifts snapshot directory for timeshift >= 22.06
|
||||||
|
# -o, --timeshift-old Activate for timeshift versions <22.06
|
||||||
# -l, --log-file Specify a logfile to write to
|
# -l, --log-file Specify a logfile to write to
|
||||||
# -v, --verbose Let the log of the daemon be more verbose
|
# -v, --verbose Let the log of the daemon be more verbose
|
||||||
# -s, --syslog Write to syslog
|
# -s, --syslog Write to syslog
|
||||||
# Uncomment the line to activate the option
|
# Uncomment the line to activate the option
|
||||||
optional_args+="--syslog " # write to syslog by default
|
optional_args+="--syslog " # write to syslog by default
|
||||||
#optional_args+="--timeshift-auto "
|
#optional_args+="--timeshift-auto "
|
||||||
|
#optional_args+="--timeshift-old "
|
||||||
#optional_args+="--log-file /var/log/grub-btrfsd.log "
|
#optional_args+="--log-file /var/log/grub-btrfsd.log "
|
||||||
#optional_args+="--verbose "
|
#optional_args+="--verbose "
|
||||||
```
|
```
|
||||||
|
|||||||
2
config
2
config
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
GRUB_BTRFS_VERSION=4.12-master-2022-11-26T16:46:45+00:00
|
GRUB_BTRFS_VERSION=4.12-master-2022-11-26T16:59:38+00:00
|
||||||
|
|
||||||
# Disable grub-btrfs.
|
# Disable grub-btrfs.
|
||||||
# Default: "false"
|
# Default: "false"
|
||||||
|
|||||||
@@ -8,11 +8,13 @@ snapshots="/.snapshots" # Snapper in the root directory
|
|||||||
## Optional arguments to run with the daemon
|
## Optional arguments to run with the daemon
|
||||||
# Possible options are:
|
# Possible options are:
|
||||||
# -t, --timeshift-auto Automatically detect Timeshifts snapshot directory for timeshift >= 22.06
|
# -t, --timeshift-auto Automatically detect Timeshifts snapshot directory for timeshift >= 22.06
|
||||||
|
# -o, --timeshift-old Activate for timeshift versions <22.06
|
||||||
# -l, --log-file Specify a logfile to write to
|
# -l, --log-file Specify a logfile to write to
|
||||||
# -v, --verbose Let the log of the daemon be more verbose
|
# -v, --verbose Let the log of the daemon be more verbose
|
||||||
# -s, --syslog Write to syslog
|
# -s, --syslog Write to syslog
|
||||||
# Uncomment the line to activate the option
|
# Uncomment the line to activate the option
|
||||||
optional_args+="--syslog " # write to syslog by default
|
optional_args+="--syslog " # write to syslog by default
|
||||||
#optional_args+="--timeshift-auto "
|
#optional_args+="--timeshift-auto "
|
||||||
|
#optional_args+="--timeshift-old "
|
||||||
#optional_args+="--log-file /var/log/grub-btrfsd.log "
|
#optional_args+="--log-file /var/log/grub-btrfsd.log "
|
||||||
#optional_args+="--verbose "
|
#optional_args+="--verbose "
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ EnvironmentFile=/etc/default/grub-btrfs/config
|
|||||||
# SNAPSHOTS_DIR Snapshot directory to watch, without effect when --timeshift-auto
|
# SNAPSHOTS_DIR Snapshot directory to watch, without effect when --timeshift-auto
|
||||||
# Optional arguments:
|
# Optional arguments:
|
||||||
# -t, --timeshift-auto Automatically detect Timeshifts snapshot directory
|
# -t, --timeshift-auto Automatically detect Timeshifts snapshot directory
|
||||||
|
# -o, --timeshift-old Activate for timeshift versions <22.06
|
||||||
# -l, --log-file Specify a logfile to write to
|
# -l, --log-file Specify a logfile to write to
|
||||||
# -v, --verbose Let the log of the daemon be more verbose
|
# -v, --verbose Let the log of the daemon be more verbose
|
||||||
# -s, --syslog Write to syslog
|
# -s, --syslog Write to syslog
|
||||||
|
|||||||
Reference in New Issue
Block a user