-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
Description
Hi,
when I create the initial backup with snap-sync the tool asks for a directory. Here I typically use the hostname in order to identify different backups of multiple hosts.
No backups have been performed for 'root' on this disk.
Enter name of subvolume to store backups, relative to /backup (to be created if not existing):
This directory is then created as a subvolume and the the backup of relevant subvolumes, e.g. root, home, etc. is started.
This all works fine and the result is this:
$ sudo btrfs su li /backup/
ID 257 gen 508 top level 5 path @backup
ID 437 gen 367 top level 257 path pc1-desktop
ID 438 gen 461 top level 437 path pc1-desktop/root/449/snapshot
ID 444 gen 480 top level 437 path pc1-desktop/home/1/snapshot
However, when I schedule a backup with systemd-timer using this systemd-config
[Unit]
Description=Run snap-sync backup
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/snap-sync --UUID de094dc0-58b7-4931-b948-4b920495bf94 --subvolid 257 --noconfirm
the backup is written to subvolume with ID=257 and a relevant directory root, home is created.
Problem:
How can I ensure that the automatic backup is written to the initially created directory pc1-desktop?
THX