diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-28 09:02:22 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-28 09:02:22 +0300 |
| commit | 969dcf722a6cc1034136b1e20d21d56240e18414 (patch) | |
| tree | b89e9943bca4636a84aeab527c31eb1f92555040 /Rexfile | |
| parent | b934cb4431fa0f87b7ee116c976750f16bff031a (diff) | |
Add home-backup script with daily systemd timer
Backs up ~ to encrypted ZFS dataset on f2 (zdata/enc/earth-backup) via
rsync over SSH. Excludes caches, trash, build artifacts, git checkouts,
syncthing, and media libraries. Adds systemd user service+timer (daily)
and enables it via Rex home_systemd_user task.
Amp-Thread-ID: https://ampcode.com/threads/T-019f0cc8-1a8f-71ab-8a1c-914d7cdb055a
Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'Rexfile')
| -rw-r--r-- | Rexfile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -470,6 +470,10 @@ task 'home_systemd_user', sub { # Enable the random-wallpaper timer so it starts on login. Rex::Logger::info('Enabling random-wallpaper.timer'); run 'systemctl --user enable random-wallpaper.timer'; + + # Enable the home-backup timer so it starts on login. + Rex::Logger::info('Enabling home-backup.timer'); + run 'systemctl --user enable home-backup.timer'; }; desc 'Install all my ~ files'; |
