db.backup

Warning:

Use SFTP with caution! This writes files to external servers under the path you specify.
Automatic backups of the database can be scheduled as follows:
  1. Go to Settings / Technical / Automation / Scheduled Actions.
  2. Search the action named 'Backup scheduler'.
  3. Set the scheduler to active and fill in how often you want backups generated.
db.backup db.backup Execute backup(s) ir.actions.server code records.action_backup()