Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
apisub
Commits
98a42161
Commit
98a42161
authored
Dec 03, 2019
by
Stephane Crozat
Browse files
Fixing bug for ssh push (bad /*)
parent
8eead193
Changes
2
Show whitespace changes
Inline
Side-by-side
INSTALL
View file @
98a42161
...
@@ -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
...
...
sh/apisub_ssh.sh
View file @
98a42161
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment