Closed mstormi closed 3 months ago
/opt/zram
run
SERVICE=1 /usr/local/sbin/zram-config sync
at regular intervals, e.g. through (ATTN: check if env var is passed !)
admin@mysmarthouse:/etc/systemd/system $ cat zsync.service [Unit] Description=Perform nightly zram sync to persistent storage After=zram-config.service Wants=zsync.timer [Service] Type=oneshot ExecStart=/usr/local/sbin/zram-config "sync" admin@mysmarthouse:/etc/systemd/system $ cat zsync.timer [Unit] Description=Perform nightly zram sync to persistent storage [Timer] Unit=zsync.service OnCalendar=*-*-* 00:55 RandomizedDelaySec=10m Persistent=true [Install] WantedBy=timers.target
added
/opt/zram
from mirrored(rsynced) exclude list of dirs backup.bash#L456run
at regular intervals, e.g. through (ATTN: check if env var is passed !)