Mettre en place sauvegarde Borg et Borg_server et sécurité ssh

Yes, it works, yesterday the backup run this way, this message was sent

Creating a backup archive from the collected files...
The archive will contain about 656.4KiB of data.
Backup created
name: auto_conf
results: 
  apps: 
  system: 
    conf_ldap: Success
    conf_manually_modified_files: Success
    conf_ynh_certs: Success
    conf_ynh_settings: Success
size: 672180
Creating a backup archive from the collected files...
The archive will contain about 102.9MiB of data.
Backup created
name: auto_data
results: 
  apps: 
  system: 
    data_home: Success
    data_mail: Success
    data_multimedia: Success
    data_xmpp: Success
size: 107948524
Collecting files to be backed up for borg...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for borg. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 112.8KiB of data.
Backup created
name: auto_borg
results: 
  apps: 
    borg: Success
  system: 
size: 115471
Collecting files to be backed up for coturn...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for coturn. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 147.9KiB of data.
Backup created
name: auto_coturn
results: 
  apps: 
    coturn: Success
  system: 
size: 151460
Collecting files to be backed up for cryptpad...
Declaring files to be backed up...
Backup script completed for cryptpad. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 669.1MiB of data.
Backup created
name: auto_cryptpad
results: 
  apps: 
    cryptpad: Success
  system: 
size: 701587254
Collecting files to be backed up for garradin...
Declaring files to be backed up...
Declaring files to be backed up...
Backup script completed for garradin. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 3.2MiB of data.
Backup created
name: auto_garradin
results: 
  apps: 
    garradin: Success
  system: 
size: 3349148
Collecting files to be backed up for grav...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for grav. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 1.1GiB of data.
Backup created
name: auto_grav
results: 
  apps: 
    grav: Success
  system: 
size: 1227673930
Collecting files to be backed up for mattermost...
Loading installation settings...
Declaring files to be backed up...
Backing up the MySQL database...
Backup script completed for mattermost. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 559.1MiB of data.
Backup created
name: auto_mattermost
results: 
  apps: 
    mattermost: Success
  system: 
size: 586216793
Collecting files to be backed up for mobilizon...
Loading installation settings...
Declaring files to be backed up...
Backing up the PostgreSQL database...
Backup script completed for mobilizon. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 272.3MiB of data.
Backup created
name: auto_mobilizon
results: 
  apps: 
    mobilizon: Success
  system: 
size: 285518750
Collecting files to be backed up for nextcloud...
Loading installation settings...
Declaring files to be backed up...
Backing up the MySQL database...
Backing up data directory...
Backup script completed for nextcloud. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 1.4GiB of data.
Backup created
name: auto_nextcloud
results: 
  apps: 
    nextcloud: Success
  system: 
size: 1540564969
Collecting files to be backed up for opensondage...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for opensondage. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 15.4MiB of data.
Backup created
name: auto_opensondage
results: 
  apps: 
    opensondage: Success
  system: 
size: 16179235
Collecting files to be backed up for rainloop...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for rainloop. (YunoHost will then actually copy those files to the archive).
Creating a backup archive from the collected files...
The archive will contain about 22.5MiB of data.
Backup created
name: auto_rainloop
results: 
  apps: 
    rainloop: Success
  system: 
size: 23586560

and I can see on the Borg server

# borg info /home/user/backup/
Enter passphrase for key /home/user/backup: 
Repository ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX1344
Location: /home/user/backup
Encrypted: Yes (repokey)
Cache: /root/.cache/borg/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX1344
Security dir: /root/.config/borg/security/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX1344
------------------------------------------------------------------------------
                       Original size      Compressed size    Deduplicated size
All archives:                8.94 GB              6.25 GB              2.66 GB

                       Unique chunks         Total chunks
Chunk index:                   75890               240645

# borg list /home/user/backup/
Enter passphrase for key /home/user/backup: 
_auto_data-2022-01-06_00:00          Thu, 2022-01-06 01:00:23 [25cb653e00ecc67b635baaa9b5f9ce9e5355a3d97b539e546292ac361c015de6]
_auto_borg-2022-01-06_00:03          Thu, 2022-01-06 01:03:29 [f66ff2a27d4408c97088fd736942922708429ac9b40fe3a8ef94b14ab0dcf562]
_auto_coturn-2022-01-06_00:03        Thu, 2022-01-06 01:03:42 [194247f625e23fe3b59bf0221ebae52bde196ae1613d418e798f944147c2bc49]
_auto_cryptpad-2022-01-06_00:03      Thu, 2022-01-06 01:03:56 [e93d4a285dc89d93fb3a406672b482d2b46e3c1ba7162b166f3f590a245e6dae]
_auto_garradin-2022-01-06_00:11      Thu, 2022-01-06 01:11:45 [96824905a20adc83794e89638b408524f6c674e621fc2efb7e351e296a7b1814]
_auto_grav-2022-01-06_00:11          Thu, 2022-01-06 01:12:02 [c1ab0342cc84dae520e38e83c0b8595bb21838090a878c0e6f366c14adedad90]
_auto_mattermost-2022-01-06_00:40    Thu, 2022-01-06 01:40:10 [0998d57dbe054e6f480ceffff25c4e2558e1a5469563d65f9e6de934139fb2f1]
_auto_mobilizon-2022-01-06_00:50     Thu, 2022-01-06 01:50:58 [af0f33e456fbf3dd8049cdb8839f8527ef8cb5a41c003591386aac3e160498a6]
_auto_nextcloud-2022-01-06_00:56     Thu, 2022-01-06 01:56:26 [24df9dac1016e267ee8d54ec3aa323271debfebfc60cde83affd93b196ff7b10]
_auto_opensondage-2022-01-06_01:12   Thu, 2022-01-06 02:12:52 [b5ffe5fba950f37d421c0d4b19ea62cf1b2a9753e5cf35c6ab30633f81de4725]
_auto_rainloop-2022-01-06_01:13      Thu, 2022-01-06 02:13:20 [f5d515211741a4994d40d4397669af98a764e6f5ef03409bc33cf7338ea7c7da]
_auto_conf-2022-01-07_04:00          Fri, 2022-01-07 05:00:11 [4994e21618cc7530ed10c4b6d51651b0396ef2c1ed9502a18f24984d89ccd5a0]
_auto_data-2022-01-07_04:00          Fri, 2022-01-07 05:00:32 [bfd3a0a6e076de1c443f3d3fe3cae2ee48c37d7a9009dd7c72ad859ec49079e1]
_auto_borg-2022-01-07_04:00          Fri, 2022-01-07 05:00:49 [4bada3e9e72bb02b8c47ca42a9b51f599bb121c1e024ed58bffe144dcd360abe]
_auto_coturn-2022-01-07_04:01        Fri, 2022-01-07 05:01:05 [58a3f79ebcac81c4b9430380552e0cbe061852dea4ec2072f89aa961cafc83f5]
_auto_cryptpad-2022-01-07_04:01      Fri, 2022-01-07 05:01:22 [71e3282b01aa9095062e09bc54d3c437ee7dd0aed70387d2fe1b4d97176f35c3]
_auto_garradin-2022-01-07_04:01      Fri, 2022-01-07 05:01:46 [a08002e808f60ef05e5b4ad1cb39275fdce610df5c9d3d4179e2faf1e1fc9013]
_auto_grav-2022-01-07_04:01          Fri, 2022-01-07 05:02:01 [459a5403804fe26a11b774150db88511e384e16f31b5c04bc955338afacb7d07]
_auto_mattermost-2022-01-07_04:03    Fri, 2022-01-07 05:03:28 [142fc3eae2736f05261f01d18b3ba93e8fc5c4055b8420562bbaeac6cab81cb6]
_auto_mobilizon-2022-01-07_04:03     Fri, 2022-01-07 05:03:52 [1ab1a7480e8ff6fa6e614ded697de588589ab625bfdd7294514382895626b825]
_auto_nextcloud-2022-01-07_04:04     Fri, 2022-01-07 05:04:17 [e3f03757fc054897a255c71009f3f384fa905d1c2cf0db5aea057786a91539fd]
_auto_opensondage-2022-01-07_04:04   Fri, 2022-01-07 05:04:40 [b3632b2e0c6fa433aab5e5ee87b18e028d63e7fe64a971b1cad3c0d0af4383ea]
_auto_rainloop-2022-01-07_04:04      Fri, 2022-01-07 05:04:56 [d75656c37d785617a8fb2cb21bb8b8704d0d341fc529dbd03a5e99f337f7f42a]

So it’s nice. And yes my question was about prune or if there is a specific configuration to keep only last changes on the backups or only last 3 days for example. I have put a daily backup with 4:00
I see in the help in the command borg you can use prune. Perhaps there is yet a configuration edited ? or I need try with a --dry-run. Pehaps edit a cron or there is a file to edit on the Borg Server to make a cron ?
Or perhaps is it on the other server with Borg Backup where I can edit something about ??
O sorry, i have discover that prune is already use on the configurations. Nice ! [Résolu] [Borg] : est-ce que par défaut les anciennes archives sont effacées? https://github.com/YunoHost-Apps/borg_ynh/blob/testing/conf/backup_method

1 Like