Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 899 Bytes

manually-trigger-a-backup.md

File metadata and controls

28 lines (17 loc) · 899 Bytes

Manually trigger a backup

Sometimes, it's necessary to manually trigger backup actions.

This can be useful when other programs are used to consistently schedule tasks or to verify that environment variables are properly configured.


Usage

Previously, performing an immediate backup required overwriting the entrypoint of the image. However, with the new setup, you can perform a backup directly with a parameterless command.

docker run \
  --rm \
  --name actualbudget-backup \
  --mount type=volume,source=actualbudget-rclone-data,target=/config/ \
  -e ... \
  rodriguestiago0/actualbudget-backup:latest backup

You also need to mount the rclone config file and set the environment variables.

The only difference is that the environment variable CRON does not work because it does not start the CRON program, but exits the container after the backup is done.