[Data backup] Restic customization

NethServer Version: 7.7.1908
Module: data_backup

Hello every one,

1.) I didn’t understand how to do if i want to data-backup only one specific directory :

/var/lib/nethserver/ibay/Documents/Administratif/

and absolutely not any other one.

  • In Cockpit: System/backup/configure i can’t take out “/var/www/html …” and so on.
    Must I put here a “/” in personalized excluded path and add “/var/lib/nethserver/ibay/Documents/Administratif/” in personalized included path ?

or

  • Must I use :
    /etc/backup-data/my_backup_name.include <- “/var/lib/nethserver/ibay/Documents/Administratif/”
    /etc/backup-data/my_backup_name.exclude <- “/”

2.) How to use a ssh key instead of a password for sftp transfert ?
3.) Where can i launch a command just before sftp transfert for port knocking ?

Thank you.
Happy end of year parties.
Rémy.

https://docs.nethserver.org/en/v7/backup_customization.html#example

A key is automatically generated and always used. It’s easier to try than to explain.

Probably, in the pre-backup event.