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
The Tor Project
Onion Services
Onionmine
Commits
55af2cf1
Verified
Commit
55af2cf1
authored
May 16, 2022
by
Silvio Rhatto
Browse files
Fix(sync-to-remotes): to not exclude pool data when syncing to a remote
parent
20c4abae
Changes
3
Hide whitespace changes
Inline
Side-by-side
bin/params
View file @
55af2cf1
...
...
@@ -57,7 +57,7 @@ RSYNC_EXCLUDES="--exclude=candidates --exclude=daemon --exclude=checkpoint.save
REMOTE_HOSTS_RSYNC
=
"0"
# The rsync command to copy the codebase to the remote hosts
REMOTE_HOSTS_RSYNC_COMMAND
=
"rsync -avz
--delete
"
REMOTE_HOSTS_RSYNC_COMMAND
=
"rsync -avz"
# Source the project-wide environment file
if
[
-e
"
$ENV
"
]
;
then
...
...
bin/sync-to-remotes
View file @
55af2cf1
...
...
@@ -44,6 +44,10 @@ fi
# Iterate over all defined hosts
for
host
in
$REMOTE_HOSTS
;
do
if
[
!
-z
"
$REMOTE_HOSTS_RSYNC
"
]
&&
[
"
$REMOTE_HOSTS_RSYNC
"
!=
0
]
;
then
$REMOTE_HOSTS_RSYNC_COMMAND
$RSYNC_EXCLUDES
$BASEDIR
/
$host
:
$REMOTE_HOSTS_BASEDIR
/
# Sync the codebase
$REMOTE_HOSTS_RSYNC_COMMAND
--exclude
--exclude
=
pools
$RSYNC_EXCLUDES
$BASEDIR
/
$host
:
$REMOTE_HOSTS_BASEDIR
/
# Sync the pools
$REMOTE_HOSTS_RSYNC_COMMAND
$RSYNC_EXCLUDES
$BASEDIR
/pools/
$host
:
$REMOTE_HOSTS_BASEDIR
/pools/
fi
done
onionmine.conf.sample
View file @
55af2cf1
...
...
@@ -111,7 +111,8 @@ REMOTE_HOSTS=""
REMOTE_HOSTS_RSYNC="0"
# The rsync command to copy the codebase to the remote hosts
REMOTE_HOSTS_RSYNC_COMMAND="rsync -avz --delete"
# To not include the --delete flag, otherwise your remote pools might be overwritten by a sync
REMOTE_HOSTS_RSYNC_COMMAND="rsync -avz"
# The remote basedir where the pool is located
REMOTE_HOSTS_BASEDIR="/home/onionmine/onionmine"
...
...
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