-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Next] BTRFS custom hooks #381
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess we should add Depends: debianutils
(or just a Recommends
or Suggests
?) in the debian/control
file.
And maybe a check for the existence of run-parts in main:
Line 355 in 07f5589
string[] dependencies = { "rsync","/sbin/blkid","df","mount","umount","fuser","crontab","cp","rm","touch","ln","sync","which"}; //"shutdown","chroot", |
Co-authored-by: Yannis Gerlach <[email protected]>
Co-authored-by: Yannis Gerlach <[email protected]>
@ygerlach thanks for your review. I did changes per your request. In addition I decided to add |
I am no maintainer - just another contributor - but i feel honoured by your review request :) It looks good to me. EDIT: |
@ygerlach thanks :) Hmmm, about
I don't quite understand. It seems to be escaped... " export TS_SNAPSHOT_PATH=\"" + snapshot_to_restore.path + "\" &&" + there's a I also tested it and it seems to be working fine... |
Yes it is, but if the variable contains a ...
export TS_SNAPSHOT_PATH="/my/path/with"inside/" &&
... It is very uncommon to have a and because it is ...
export TS_SNAPSHOT_PATH="/my/path/with/${RANDOM}/inside/$(gnome-calculator)/" &&
... But in this specific case it might be fine, because the path is somewhat fixed by the surrounding code of timeshift. It is not exactly user controlled input. So i am not sure if that would need fixing. |
It doesn't contain I tried to find a way to change/set a custom path, but I didn't find anything. Seems you've same observations:
Exactly, agree. |
Allows creation a custom hooks for btrfs filesystem,
Fixes #365 - allows using timeshift when, e.g.,
/boot
is on a separate partition or other individual setup that requires tunning.Tested on Ubuntu 24.04.
Locations:
/etc/timeshift/backup-hooks.d/*
/etc/timeshift/restore-hooks.d/*
Scripts filename requirements:
Above means e.g.
restore.sh
is invalid filename as it contains.
symbol (which mean file will be ignored).There is
export TS_SNAPSHOT_PATH
which equals current snapshot path (for use in both Restore & Backup hooks).