We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cb682a commit 3a3b6a7Copy full SHA for 3a3b6a7
bin/ncp/BACKUPS/nc-snapshot-sync.sh
@@ -15,12 +15,12 @@ install()
15
apt-get install -y --no-install-recommends pv openssh-client
16
wget https://raw.githubusercontent.com/nachoparker/btrfs-sync/master/btrfs-sync -O /usr/local/bin/btrfs-sync
17
chmod +x /usr/local/bin/btrfs-sync
18
- ssh-keygen -N "" -f /root/.ssh/id_rsa
+ if ! [[ -f /root/.ssh/id_rsa ]]; then ssh-keygen -N "" -f /root/.ssh/id_rsa; fi
19
}
20
21
configure()
22
{
23
- [[ $ACTIVE != "yes" ]] && {
+ [[ $ACTIVE != "yes" ]] && {
24
rm -f /etc/cron.d/ncp-snapsync-auto
25
service cron restart
26
echo "snapshot sync disabled"
0 commit comments