How to run dietpi-backup completely in background (no terminal connection)?

Hi DietPi team,
I’m trying to run dietpi-backup completely in the background, so it continues after I disconnect from the SSH session.
What I tried so far:

dietpi-backup 1 > dietpi-backup.log 2>&1 &

This seems to work, but I’m not sure if this is the correct / recommended way with DietPi, or if there are any caveats (signals, cleanup, logging, etc.).

My questions:

  • Is there a built-in DietPi mechanism (service, flag, or cron job) intended for background backups?

  • Any best practices for running backups unattended?

Thanks a lot for your help and for DietPi :+1:

You can activate daily automatic backups in dietpi-backup.

Yes, the automatic backup uses just a cron job, which just executes

/boot/dietpi/dietpi-backup 1

A log is created in the backup location, no need to log to a separate file. (https://dietpi.com/docs/dietpi_tools/system_maintenance/#software-overview-logging
And the backup settings are set here: /boot/dietpi/.dietpi-backup_settings