mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
parent
4edbae169b
commit
8f84daf690
@ -34,7 +34,7 @@ configure()
|
||||
${SSH[@]} : || { echo "SSH non-interactive not properly configured"; return 1; }
|
||||
}
|
||||
|
||||
echo "0 5 */${SYNCDAYS} * * root /usr/bin/rsync -ax --delete \"$DATADIR\" \"$DESTINATION\"" > /etc/cron.d/ncp-rsync-auto
|
||||
echo "0 5 */${SYNCDAYS} * * root /usr/bin/rsync -ax -e \"ssh -p $PORTNUMBER\" --delete \"$DATADIR\" \"$DESTINATION\"" > /etc/cron.d/ncp-rsync-auto
|
||||
chmod 644 /etc/cron.d/ncp-rsync-auto
|
||||
service cron restart
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ configure()
|
||||
return 1;
|
||||
}
|
||||
|
||||
rsync -ax --delete "$DATADIR" "$DESTINATION"
|
||||
rsync -ax -e "ssh -p $PORTNUMBER" --delete "$DATADIR" "$DESTINATION"
|
||||
|
||||
sudo -u www-data php "$BASEDIR"/nextcloud/occ maintenance:mode --off
|
||||
}
|
||||
|
||||
@ -18,6 +18,12 @@
|
||||
"value": "user@ip:/path/to/sync",
|
||||
"suggest": "user@ip:/path/to/sync"
|
||||
},
|
||||
{
|
||||
"id": "PORTNUMBER",
|
||||
"name": "SSH port number",
|
||||
"value": "22",
|
||||
"suggest": "22"
|
||||
},
|
||||
{
|
||||
"id": "SYNCDAYS",
|
||||
"name": "Sync days",
|
||||
|
||||
@ -11,6 +11,12 @@
|
||||
"name": "Destination",
|
||||
"value": "user@ip:/path/to/sync",
|
||||
"suggest": "user@ip:/path/to/sync"
|
||||
},
|
||||
{
|
||||
"id": "PORTNUMBER",
|
||||
"name": "SSH port number",
|
||||
"value": "22",
|
||||
"suggest": "22"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user