I try to create a script that will back-up my bck_folder
This is how the code looks like in .sh
( i use zsh. just to point )
#!/bin/zsh today="$(/bin/date +%x-%R)-$(/usr/bin/whoami)-$(/bin/hostname)" echo echo $today echo tar -cvzf backup-$today.tar.tgz $HOME/Documents/bck_folder
and the result is this
./tared_all.sh 26.10.2018-16:17-ralexander-lateralus tar (child): Cannot connect to backup-26.10.2018-16: resolve failed tar: Removing leading `/' from member names /home/ralexander/Documents/bck_folder/ . . . tar (child): Cannot connect to backup-26.10.2018-16: resolve failed tar: Child returned status 128 tar: Error is not recoverable: exiting now
Any words of wisdom how to make it work ?!