Add new script to backup essentials to work homedir

This commit is contained in:
Jan Philipp Timme 2020-06-09 12:35:21 +02:00
parent 72756a6515
commit 396d50ee1b
1 changed files with 8 additions and 0 deletions

8
bin/backup-notes Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
if [[ -d /mnt/timmej/home/Notizen ]]; then
rsync -av /home/jpt/Notizen /mnt/timmej/home/Notizen
else
echo "Mount /mnt/timmej/home/Notizen please!"
exit 1;
fi