echo "=======================================" find . -maxdepth 1 -type d | while read dir; do cd "$dir" echo "in $dir" duplicity /home/$dir/public_html scp://x@x.com//home/x/$dir –ssh-askpass –no-encryption cd "$OLDPWD" done
unset FTP_PASSWORD unset PASSPHRASE
I ran it with ./backup.sh >> log.txt 2>&1 But for some reason there are 2 processes.
Nope. Just one of those things that you don't want running twice. I don't write bash scripts often (why did I even make this in bash…) so I wasn't sure if I did something really wrong somewhere. :P
Anyway. I have a bash script:
I ran it with ./backup.sh >> log.txt 2>&1
But for some reason there are 2 processes.
Is this normal behavior?