YunoHost-Apps / borg_ynh

An experimental Borg implementation for YunoHost
https://www.borgbackup.org/
GNU Affero General Public License v3.0
19 stars 25 forks source link

Explanation on borg versioning backup #68

Closed Thatoo closed 3 years ago

Thatoo commented 3 years ago

Hello,

Borg seems to work but when I do

sudo BORG_RSH="ssh -i /root/.ssh/id_borg_ed25519 -oStrictHostKeyChecking=yes " borg list ssh://server@serverb:portSSShserverb/~/backup

I get the following list

auto_conf_07_10_20_18:51             Wed, 2020-10-07 18:51:33 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_data_07_10_20_18:51             Wed, 2020-10-07 18:51:52 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_borg_07_10_20_19:24             Wed, 2020-10-07 19:24:10 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_cesium_07_10_20_19:24           Wed, 2020-10-07 19:24:26 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_element_07_10_20_19:24          Wed, 2020-10-07 19:24:47 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_my_webapp_07_10_20_19:26        Wed, 2020-10-07 19:26:17 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_nextcloud_07_10_20_19:27        Wed, 2020-10-07 19:27:23 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_opensondage_07_10_20_21:15      Wed, 2020-10-07 21:15:17 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_phpmyadmin_07_10_20_21:15       Wed, 2020-10-07 21:15:43 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_searx_07_10_20_21:16            Wed, 2020-10-07 21:16:35 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_synapse_07_10_20_21:17          Wed, 2020-10-07 21:17:24 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_ttrss_07_10_20_22:01            Wed, 2020-10-07 22:01:53 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_vpnclient_07_10_20_22:02        Wed, 2020-10-07 22:02:23 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_wallabag2_07_10_20_22:02        Wed, 2020-10-07 22:02:46 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
auto_wordpress_07_10_20_22:03        Wed, 2020-10-07 22:03:35 [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]

it all date from 2020-10-07 (date I installed Borg) and I don't see any updated ARCHIVE_NAME. Is it normal? or should I see more ARCHIVE_NAME or see them at least updated with a new date? Or, if it's normal, how can I know it has been updated and it's not the old content only from the time I installed and launch bor backup?

Thank you in advance for your explanations.

Thatoo commented 3 years ago

If I do a sudo service borg restart it takes a long time, as if it was doing something but then, when I do sudo BORG_RSH="ssh -i /root/.ssh/id_borg_ed25519 -oStrictHostKeyChecking=yes " borg list ssh://server@serverb:portSSShserverb/~/backup I get the same result.

And if I connect on ssh to serverb and I do borg info /home/borguser/backup , it keep telling

Repository ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Location: /home/borguser/backup
Encrypted: Yes (repokey)
Cache: /home/borguser/.cache/borg/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Security dir: /home/borguser/.config/borg/security/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
------------------------------------------------------------------------------
                       Original size      Compressed size    Deduplicated size
All archives:               56.01 GB             46.97 GB             35.08 GB

                       Unique chunks         Total chunks
Chunk index:                  154993               170751

It feels like neither of Original size, Compressed size and Deduplicated size never change, never increase...

zamentur commented 3 years ago

You might have installed borg after installing borgserver on serverB (a current bug with this situation could explain your issue) I am working on it.

zamentur commented 3 years ago

Note this bug has been solved in recent version of borg and borgserver_ynh.