.
This commit is contained in:
3
fixes/1-defaults
Executable file
3
fixes/1-defaults
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
syncthing cli config defaults folder fswatcher-enabled set false
|
||||||
|
syncthing cli config defaults folder rescan-intervals set 19997
|
||||||
|
syncthing cli config options min-home-disk-free unit set GB
|
||||||
15
fixes/1-machines
Executable file
15
fixes/1-machines
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
BINARY=~/Downloads/.syncthing/syncthing
|
||||||
|
|
||||||
|
myID=`${BINARY} --device-id`
|
||||||
|
|
||||||
|
MASTER_LIST=/zz/zPrivate/secrets/master.list
|
||||||
|
SHARE_LIST=/zz/zPrivate/secrets/share.list
|
||||||
|
|
||||||
|
grep -v ${myID} ${MASTER_LIST} ${SHARE_LIST} > /tmp/final.1
|
||||||
|
|
||||||
|
|
||||||
|
for i in `cat /tmp/final.1`
|
||||||
|
do
|
||||||
|
echo $i
|
||||||
|
syncthing cli config devices add --device-id $i
|
||||||
|
done
|
||||||
20
fixes/1-pushfolders
Executable file
20
fixes/1-pushfolders
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
BINARY=~/Downloads/.syncthing/syncthing
|
||||||
|
|
||||||
|
myID=`${BINARY} --device-id`
|
||||||
|
|
||||||
|
MASTER_LIST=/zz/zPrivate/secrets/master.list
|
||||||
|
SHARE_LIST=/zz/zPrivate/secrets/share.list
|
||||||
|
|
||||||
|
grep -v ${myID} ${MASTER_LIST} ${SHARE_LIST} > /tmp/final.1
|
||||||
|
|
||||||
|
syncthing cli config folders list > /tmp/final.2
|
||||||
|
|
||||||
|
for i in `cat /tmp/final.1`
|
||||||
|
do
|
||||||
|
echo $i
|
||||||
|
for j in `cat /tmp/final.2`
|
||||||
|
do
|
||||||
|
echo $j
|
||||||
|
syncthing cli config folders $j devices add --device-id=$i
|
||||||
|
done
|
||||||
|
done
|
||||||
11
fixes/3-fixlocalfolders
Executable file
11
fixes/3-fixlocalfolders
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
syncthing cli config folders list > /tmp/final.2
|
||||||
|
|
||||||
|
for i in `cat /tmp/final.2`
|
||||||
|
do
|
||||||
|
echo $i
|
||||||
|
syncthing cli config folders $i rescan-intervals set 19997
|
||||||
|
syncthing cli config folders $i fswatcher-enabled set false
|
||||||
|
syncthing cli config folders $i min-disk-free unit set GB
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
Reference in New Issue
Block a user