scripts/bash/borg_mount/borg_mount_local.sh
2023-02-06 13:28:35 +01:00

25 lines
740 B
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#/bin/bash
#
# touch $ARCHIVE_SYNCABLE/.tk-borg-passphrase-light
# remplir le fichier avec les données prises depuis bitwarden
#
# bash /home/$USER/Nextcloud/projets/rangement/borg_mount.sh
#
# l'archive borg fait 1.3 To
#
echo "monter le borg backup local du disque dada /media/$USER/dada/backup_land4to"
export BORG_PASSCOMMAND="cat /home/$USER/.tk-borg-passphrase-light" # get the borg repo pass
mkdir -p /media/$USER/dada/backup_land4to
mkdir -p /media/$USER/dada/temp_mount_backup_land
rm -rf /media/$USER/dada/backup_land4to/lock.exclusive
borg mount /media/$USER/dada/backup_land4to /media/$USER/dada/temp_mount_backup_land
ls -l /media/$USER/dada/tmp_mount_borg
echo "dossier borg monté dans /media/$USER/tmp_mount_borg"