#!/bin/sh datum=$(date +"%y-%m-%d") backuplog=/root/backup-log sudo sshfs pi@pi:/home/pi/mast/bak/dbn /root/.bak #borg create -svp pi@192.168.64.112:~/mast/bak/tp::$datum /etc /home /opt /root /srv /var | sudo tee -a $backuplog echo "Backup sistema $datum" | sudo tee -a $backuplog #rsync -avz /etc /home /opt /root /srv /var pi@pi:~/mast/bak/tp | tee -a $backuplog sudo borg create --stats --verbose --compression=lz4 "/root/.bak::$datum" /etc /home /opt /root /srv /var | sudo tee -a $backuplog sudo umount /root/.bak