Commit 98a42161 authored by Stephane Crozat's avatar Stephane Crozat
Browse files

Fixing bug for ssh push (bad /*)

parent 8eead193
...@@ -19,7 +19,7 @@ chmod 770 /home/apisub/backup ...@@ -19,7 +19,7 @@ chmod 770 /home/apisub/backup
cp sh/apisub_backup.sh /usr/bin cp sh/apisub_backup.sh /usr/bin
chown postgres:postgres /usr/bin/apisub_backup.sh chown postgres:postgres /usr/bin/apisub_backup.sh
cp sh/apisub_ssh.sh /usr/bin cp sh/apisub_ssh.sh /usr/bin
chown apisub:apisub /usr/bin/apisub_backup.sh chown apisub:apisub /usr/bin/apisub_ssh.sh
crontab -e -u postgres crontab -e -u postgres
crontab -e -u apisub crontab -e -u apisub
......
...@@ -6,4 +6,4 @@ dest='/media/pi/MY3T-STPH/apisub' ...@@ -6,4 +6,4 @@ dest='/media/pi/MY3T-STPH/apisub'
user='apisub' user='apisub'
host='bdu.crzt.fr' host='bdu.crzt.fr'
echo "rsync $src $user@$host:$dest" echo "rsync $src $user@$host:$dest"
rsync $src/* $user@$host:/$dest rsync $src $user@$host:/$dest
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment