1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borg_ynh.git synced 2024-09-03 18:16:05 +02:00

Merge pull request #84 from YunoHost-Apps/testing

Testing
This commit is contained in:
ljf (zamentur) 2021-04-26 08:50:29 +02:00 committed by GitHub
commit 484c237848
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 10 deletions

View file

@ -1,4 +1,4 @@
;; Test complet ;; Test remote directory
; Manifest ; Manifest
repository="ssh://sam@domain.tld:22/~/backup" repository="ssh://sam@domain.tld:22/~/backup"
passphrase="APassphrase" passphrase="APassphrase"
@ -19,9 +19,29 @@
multi_instance=1 multi_instance=1
port_already_use=0 port_already_use=0
change_url=0 change_url=0
;; Test local directory
; Manifest
repository="/mnt/backup"
passphrase="APassphrase"
conf=1
data=1
apps="all"
on_calendar="Daily"
; Checks
pkg_linter=1
setup_sub_dir=0
setup_root=0
setup_nourl=1
setup_private=0
setup_public=0
upgrade=1
backup_restore=1
multi_instance=1
port_already_use=0
change_url=0
;;; Options ;;; Options
Email=ljf+borg_ynh@reflexlibre.net Email=ljf+borg_ynh@reflexlibre.net
Notificatio Notification=change
;;; Upgrade options ;;; Upgrade options
; commit=c1524dd8e37cc671c01f5b5363901dd6a01e6fc1 ; commit=c1524dd8e37cc671c01f5b5363901dd6a01e6fc1
name=Merge pull request #63 from YunoHost-Apps/testing name=Merge pull request #63 from YunoHost-Apps/testing

View file

@ -6,7 +6,7 @@
"en": "Backup your server on a host server using Borg.", "en": "Backup your server on a host server using Borg.",
"fr": "Sauvegardez votre serveur sur un serveur distant avec Borg." "fr": "Sauvegardez votre serveur sur un serveur distant avec Borg."
}, },
"version": "1.1.16~ynh19", "version": "1.1.16~ynh20",
"url": "https://borgbackup.readthedocs.io", "url": "https://borgbackup.readthedocs.io",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"maintainer": { "maintainer": {

View file

@ -27,13 +27,13 @@ app=$YNH_APP_INSTANCE_NAME
#================================================= #=================================================
ynh_print_info --message="Declaring files to be backed up..." ynh_print_info --message="Declaring files to be backed up..."
ynh_backup "/usr/local/bin/backup-with-$app" ynh_backup --src_path="/usr/local/bin/backup-with-$app"
ynh_backup "/etc/sudoers.d/$app" ynh_backup --src_path="/etc/sudoers.d/$app"
ynh_backup "/etc/systemd/system/$app.service" ynh_backup --src_path="/etc/systemd/system/$app.service"
ynh_backup "/etc/systemd/system/$app.timer" ynh_backup --src_path="/etc/systemd/system/$app.timer"
ynh_backup "/etc/yunohost/hooks.d/backup_method/05-${app}_app" ynh_backup --src_path="/etc/yunohost/hooks.d/backup_method/05-${app}_app"
ynh_backup "/root/.ssh/id_${app}_ed25519" ynh_backup --src_path="/root/.ssh/id_${app}_ed25519" --not_mandatory
ynh_backup "/root/.ssh/id_${app}_ed25519.pub" ynh_backup --src_path="/root/.ssh/id_${app}_ed25519.pub" --not_mandatory
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT